# HG changeset patch # User slugovoy # Date 1416225448 -10800 # Node ID e415087c78aa3b86a5ebd385112727f2031b77ab # Parent 82f4cb44b2d7af2352f48568a64b7b6a5ae960cd 8062638: RuntimeException when run command from js with -scripting on Cygwin Reviewed-by: hannesw, lagergren diff -r 82f4cb44b2d7 -r e415087c78aa nashorn/test/script/nosecurity/JDK-8050964.js --- a/nashorn/test/script/nosecurity/JDK-8050964.js Wed Jul 05 20:07:55 2017 +0200 +++ b/nashorn/test/script/nosecurity/JDK-8050964.js Mon Nov 17 14:57:28 2014 +0300 @@ -50,6 +50,7 @@ var jdepsPath = javahome + "/../bin/jdeps".replaceAll(/\//g, File.separater); // run jdep on nashorn.jar - only summary but print profile info +$ENV.PWD=System.getProperty("user.dir") // to avoid RE on Cygwin `${jdepsPath} -s -P ${nashornJar.absolutePath}` // check for "(compact1)" in output from jdep tool diff -r 82f4cb44b2d7 -r e415087c78aa nashorn/test/script/nosecurity/JDK-8055034.js --- a/nashorn/test/script/nosecurity/JDK-8055034.js Wed Jul 05 20:07:55 2017 +0200 +++ b/nashorn/test/script/nosecurity/JDK-8055034.js Mon Nov 17 14:57:28 2014 +0300 @@ -49,7 +49,7 @@ var jjsCmd = javahome + "/../bin/jjs"; jjsCmd += " -J-Djava.ext.dirs=" + nashornJarDir; jjsCmd = jjsCmd.toString().replaceAll(/\//g, File.separater); - +$ENV.PWD=System.getProperty("user.dir") // to avoid RE on Cygwin $EXEC(jjsCmd, "var x = Object.create(null);\nx;\nprint('PASSED');\nexit(0)"); // $ERR has all interactions including prompts! Just check for error substring.