test/jdk/tools/jjs/sysprops.js
author herrick
Fri, 21 Jun 2019 08:29:09 -0400
branchJDK-8200758-branch
changeset 57419 44c2481650ce
parent 47216 71c04702a3d5
permissions -rw-r--r--
8225092: Several jpackage tests failes when run with jcov enabled Submitted-by: almatvee Reviewed-by: herrick, almatvee

/*
 * This is the test JavaScript program used in jjs-DTest.sh
 */

var Sys = java.lang.System;
if (Sys.getProperty("jjs.foo") == "bar") {
    print("Passed");
} else {
    // unexpected value
    throw new Error("Unexpected System property value");
}