8151518: relax test requirements to reduce dependency on directory contents
authormhaupt
Wed, 09 Mar 2016 15:15:29 +0100
changeset 36480 1a873ecd2249
parent 36479 560761a8e879
child 36481 9826c19a5310
8151518: relax test requirements to reduce dependency on directory contents Reviewed-by: hannesw, sundar
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')