summaryrefslogtreecommitdiffstats
path: root/tests/harness/SystemPropertiesTest.java
blob: d02985f88baaf3bac1d7cd9cd0a09d1abfdbed81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);
        }
    }
}