aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/harness/SystemPropertiesTest.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/harness/SystemPropertiesTest.java b/tests/harness/SystemPropertiesTest.java
index d02985f88..06a95699b 100644
--- a/tests/harness/SystemPropertiesTest.java
+++ b/tests/harness/SystemPropertiesTest.java
@@ -1,15 +1,13 @@
public class SystemPropertiesTest {
- public static void main(String[] args) {
+ public static void main(String[] args) {
boolean pass = Boolean.getBoolean("PASS");
if (!pass) {
- throw new Error("failed to get Boolean \\\"PASS\\\"");
+ throw new RuntimeException("failed to get Boolean \"PASS\"");
}
String value = System.getProperty("name", null);
if (!"value".equals(value)) {
- throw new Error("failed to get name=\"value\": " + value);
+ throw new RuntimeException("failed to get name=\"value\": " + value);
}
}
}
-
-