Mercurial > hg > truffle
diff test/compiler/whitebox/CompilerWhiteBoxTest.java @ 12026:11237ee74aae
8019915: whitebox testClearMethodStateTest fails with tiered on sparc
Summary: 'compileonly' directive has beens added to each 'compiler/whitebox' test
Reviewed-by: kvn
author | iignatyev |
---|---|
date | Sat, 10 Aug 2013 10:01:12 +0400 |
parents | d1c9384eecb4 |
children | f99558245e5c |
line wrap: on
line diff
--- a/test/compiler/whitebox/CompilerWhiteBoxTest.java Fri Aug 09 18:05:00 2013 +0200 +++ b/test/compiler/whitebox/CompilerWhiteBoxTest.java Sat Aug 10 10:01:12 2013 +0400 @@ -61,6 +61,9 @@ /** Value of {@code -XX:TieredStopAtLevel} */ protected static final int TIERED_STOP_AT_LEVEL = Integer.parseInt(getVMOption("TieredStopAtLevel", "0")); + /** Flag for verbose output, true if {@code -Dverbose} specified */ + protected static final boolean IS_VERBOSE + = System.getProperty("verbose") != null; /** * Returns value of VM option. @@ -268,7 +271,9 @@ } result += tmp == null ? 0 : tmp; } - System.out.println("method was invoked " + count + " times"); + if (IS_VERBOSE) { + System.out.println("method was invoked " + count + " times"); + } return result; } }