Printed a warning message when timing tests are disabled

This commit is contained in:
Trustin Lee 2009-03-09 19:05:59 +00:00
parent a5a7181615
commit e6cc8fb5eb

View File

@ -33,7 +33,9 @@ public final class TestOptions {
static {
String value = System.getProperty("exclude-timing-tests", "false");
ENABLED = !ConversionUtil.toBoolean(value);
System.out.println("Timing tests will be disabled as requested.");
if (!ENABLED) {
System.err.println("Timing tests will be disabled as requested.");
}
}
public static boolean isTimingTestEnabled() {