# HG changeset patch # User mhaupt # Date 1457532929 -3600 # Node ID 1a873ecd22491c28dd54c87d3b8879df464f66b5 # Parent 560761a8e879672dcf66045991e98ed66f02e310 8151518: relax test requirements to reduce dependency on directory contents Reviewed-by: hannesw, sundar diff -r 560761a8e879 -r 1a873ecd2249 nashorn/test/script/nosecurity/JDK-8151291.js --- a/nashorn/test/script/nosecurity/JDK-8151291.js Wed Mar 09 13:24:01 2016 +0100 +++ b/nashorn/test/script/nosecurity/JDK-8151291.js Wed Mar 09 15:15:29 2016 +0100 @@ -59,10 +59,10 @@ $EXEC("cd ..; ls") var ls_cdupwd = $OUT eq($ENV.PWD, startwd, 'PWD changed during $EXEC cd') -neq(ls_startwd, ls_cdupwd, 'same ls result for startwd and upwd') +neq(ls_startwd, ls_cdupwd, 'same ls result for startwd and upwd with $EXEC cd') $ENV.PWD = upwd eq($ENV.PWD, upwd, '$ENV.PWD change had no effect') $EXEC("ls") var ls_epupwd = $OUT -eq(ls_cdupwd, ls_epupwd, 'different results for upwd') +neq(ls_startwd, ls_epupwd, 'same ls result for startwd and upwd with $ENV.PWD cd')