< prev index next >

test/script/nosecurity/JDK-8055034.js

Print this page
rev 1276 : 8080471: fix usage of replace and file separator in Nashorn tests

*** 44,57 **** nashornJar = new File(".", nashornJar); } // we want to use nashorn.jar passed and not the one that comes with JRE var jjsCmd = javahome + "/../bin/jjs"; ! jjsCmd = jjsCmd.toString().replaceAll(/\//g, File.separater); if (! new File(jjsCmd).isFile()) { jjsCmd = javahome + "/bin/jjs"; ! jjsCmd = jjsCmd.toString().replaceAll(/\//g, File.separater); } jjsCmd += " -J-Xbootclasspath/p:" + nashornJar; $ENV.PWD=System.getProperty("user.dir") // to avoid RE on Cygwin $EXEC(jjsCmd, "var x = Object.create(null);\nx;\nprint('PASSED');\nexit(0)"); --- 44,57 ---- nashornJar = new File(".", nashornJar); } // we want to use nashorn.jar passed and not the one that comes with JRE var jjsCmd = javahome + "/../bin/jjs"; ! jjsCmd = jjsCmd.toString().replace(/\//g, File.separator); if (! new File(jjsCmd).isFile()) { jjsCmd = javahome + "/bin/jjs"; ! jjsCmd = jjsCmd.toString().replace(/\//g, File.separator); } jjsCmd += " -J-Xbootclasspath/p:" + nashornJar; $ENV.PWD=System.getProperty("user.dir") // to avoid RE on Cygwin $EXEC(jjsCmd, "var x = Object.create(null);\nx;\nprint('PASSED');\nexit(0)");
< prev index next >