Better option handling

This commit is contained in:
Trustin Lee 2009-03-09 19:07:11 +00:00
parent e6cc8fb5eb
commit ddd756b276

View File

@ -31,7 +31,11 @@ public final class TestOptions {
private static final boolean ENABLED;
static {
String value = System.getProperty("exclude-timing-tests", "false");
String value = System.getProperty("exclude-timing-tests", "false").trim();
if (value.length() == 0) {
value = "true";
}
ENABLED = !ConversionUtil.toBoolean(value);
if (!ENABLED) {
System.err.println("Timing tests will be disabled as requested.");