Mercurial > hg > graal-compiler
diff test/testlibrary/OutputAnalyzerTest.java @ 12238:9e11762cee52
8024650: Don't adjust MaxMetaspaceSize up to MetaspaceSize
Reviewed-by: jwilhelm, brutisso, tschatzl
author | stefank |
---|---|
date | Fri, 13 Sep 2013 22:22:14 +0200 |
parents | 3b890cd4da64 |
children |
line wrap: on
line diff
--- a/test/testlibrary/OutputAnalyzerTest.java Fri Sep 13 22:21:06 2013 +0200 +++ b/test/testlibrary/OutputAnalyzerTest.java Fri Sep 13 22:22:14 2013 +0200 @@ -172,5 +172,22 @@ } catch (RuntimeException e) { // expected } + + { + String aaaa = "aaaa"; + String result = output.firstMatch(aaaa); + if (!aaaa.equals(result)) { + throw new Exception("firstMatch(String) faild to match. Expected: " + aaaa + " got: " + result); + } + } + + { + String aa = "aa"; + String aa_grouped_aa = aa + "(" + aa + ")"; + String result = output.firstMatch(aa_grouped_aa, 1); + if (!aa.equals(result)) { + throw new Exception("firstMatch(String, int) failed to match. Expected: " + aa + " got: " + result); + } + } } }