nashorn/test/script/nosecurity/JDK-8050964.js
changeset 27824 ab74da77b5a2
parent 27571 08ef93eaca80
parent 27811 e415087c78aa
child 30698 2d50f5564f7b
equal deleted inserted replaced
27581:9fffb959eb41 27824:ab74da77b5a2
    51 if (! new File(jdepsPath).isFile()) {
    51 if (! new File(jdepsPath).isFile()) {
    52     jdepsPath = javahome + "/bin/jdeps".replaceAll(/\//g, File.separater);
    52     jdepsPath = javahome + "/bin/jdeps".replaceAll(/\//g, File.separater);
    53 }
    53 }
    54 
    54 
    55 // run jdep on nashorn.jar - only summary but print profile info
    55 // run jdep on nashorn.jar - only summary but print profile info
       
    56 $ENV.PWD=System.getProperty("user.dir") // to avoid RE on Cygwin
    56 `${jdepsPath} -s -P ${nashornJar.absolutePath}`
    57 `${jdepsPath} -s -P ${nashornJar.absolutePath}`
    57 
    58 
    58 // check for "(compact1)" in output from jdep tool
    59 // check for "(compact1)" in output from jdep tool
    59 if (! /(compact1)/.test($OUT)) {
    60 if (! /(compact1)/.test($OUT)) {
    60     fail("non-compact1 dependency: " + $OUT);
    61     fail("non-compact1 dependency: " + $OUT);