23 |
23 |
24 /** |
24 /** |
25 * NASHORN-758 : nashorn shell command line options improvements |
25 * NASHORN-758 : nashorn shell command line options improvements |
26 * |
26 * |
27 * @test |
27 * @test |
28 * @option -Dfoo=bar |
28 * @option -Dnashorn.test.foo=bar |
29 * @option -Dhello=world |
29 * @option -Dnashorn.test.hello=world |
30 * @run |
30 * @run |
31 */ |
31 */ |
32 |
32 |
33 |
33 |
34 if (java.lang.System.getProperty("foo") != "bar") { |
34 if (java.lang.System.getProperty("nashorn.test.foo") != "bar") { |
35 fail("System property 'foo' != 'bar'"); |
35 fail("System property 'nashorn.test.foo' != 'bar'"); |
36 } |
36 } |
37 |
37 |
38 if (java.lang.System.getProperty("hello") != "world") { |
38 if (java.lang.System.getProperty("nashorn.test.hello") != "world") { |
39 fail("System property 'hello' != 'world'"); |
39 fail("System property 'nashorn.test.hello' != 'world'"); |
40 } |
40 } |