aboutsummaryrefslogtreecommitdiffstats
path: root/tests/harness/SystemPropertiesTest.java
diff options
context:
space:
mode:
authorwisberg <wisberg>2004-10-06 08:40:36 +0000
committerwisberg <wisberg>2004-10-06 08:40:36 +0000
commit7a18d808a067c45dcf03bfc1d431a64441b62f1d (patch)
treea2c5362c3d2f579fba34c752345732ae55a3b154 /tests/harness/SystemPropertiesTest.java
parentf54f7e805474b561810a46fb3493cbc5fda68d4b (diff)
downloadaspectj-7a18d808a067c45dcf03bfc1d431a64441b62f1d.tar.gz
aspectj-7a18d808a067c45dcf03bfc1d431a64441b62f1d.zip
tests for new java run fork attributes
Diffstat (limited to 'tests/harness/SystemPropertiesTest.java')
-rw-r--r--tests/harness/SystemPropertiesTest.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/harness/SystemPropertiesTest.java b/tests/harness/SystemPropertiesTest.java
new file mode 100644
index 000000000..d02985f88
--- /dev/null
+++ b/tests/harness/SystemPropertiesTest.java
@@ -0,0 +1,15 @@
+
+public class SystemPropertiesTest {
+ public static void main(String[] args) {
+ boolean pass = Boolean.getBoolean("PASS");
+ if (!pass) {
+ throw new Error("failed to get Boolean \\\"PASS\\\"");
+ }
+ String value = System.getProperty("name", null);
+ if (!"value".equals(value)) {
+ throw new Error("failed to get name=\"value\": " + value);
+ }
+ }
+}
+
+