diff --git a/test/mjsunit/test-remote-module-loading.js b/test/mjsunit/test-remote-module-loading.js index 7c6b0f56e..1ff7c280e 100644 --- a/test/mjsunit/test-remote-module-loading.js +++ b/test/mjsunit/test-remote-module-loading.js @@ -21,7 +21,7 @@ assertEquals('/moduleA.js', httpModule.httpPath()); modulesLoaded++; var nodeBinary = process.ARGV[0]; -var cmd = nodeBinary+' http://localhost:'+PORT+'/moduleB.js'; +var cmd = 'NODE_PATH='+libDir+' '+nodeBinary+' http://localhost:'+PORT+'/moduleB.js'; sys .exec(cmd)