nashorn/test/script/nosecurity/JDK-8050964.js
changeset 27811 e415087c78aa
parent 26067 b32ccc3a76c9
child 27824 ab74da77b5a2
equal deleted inserted replaced
27557:82f4cb44b2d7 27811:e415087c78aa
    48 
    48 
    49 var javahome = System.getProperty("java.home");
    49 var javahome = System.getProperty("java.home");
    50 var jdepsPath = javahome + "/../bin/jdeps".replaceAll(/\//g, File.separater);
    50 var jdepsPath = javahome + "/../bin/jdeps".replaceAll(/\//g, File.separater);
    51 
    51 
    52 // run jdep on nashorn.jar - only summary but print profile info
    52 // run jdep on nashorn.jar - only summary but print profile info
       
    53 $ENV.PWD=System.getProperty("user.dir") // to avoid RE on Cygwin
    53 `${jdepsPath} -s -P ${nashornJar.absolutePath}`
    54 `${jdepsPath} -s -P ${nashornJar.absolutePath}`
    54 
    55 
    55 // check for "(compact1)" in output from jdep tool
    56 // check for "(compact1)" in output from jdep tool
    56 if (! /(compact1)/.test($OUT)) {
    57 if (! /(compact1)/.test($OUT)) {
    57     fail("non-compact1 dependency: " + $OUT);
    58     fail("non-compact1 dependency: " + $OUT);