Output stderr from test-remote-module-loading.js
authorRyan Dahl <ry@tinyclouds.org>
Sat, 7 Nov 2009 14:08:46 +0000 (15:08 +0100)
committerRyan Dahl <ry@tinyclouds.org>
Sat, 7 Nov 2009 14:08:46 +0000 (15:08 +0100)
There is a small problem with test-remote-module-loading.js.
When it starts a child "node", the child uses the default require.paths
instead unshifting the build lib/

test/mjsunit/test-remote-module-loading.js

index 7baecff..7c6b0f5 100644 (file)
@@ -29,10 +29,10 @@ sys
     modulesLoaded++;
     server.close();
   })
-  .addErrback(function() {
-    assertUnreachable('node binary could not load module from url');
+  .addErrback(function(code, stdout, stderr) {
+    assertUnreachable('node binary could not load module from url: ' + stderr);
   });
 
 process.addListener('exit', function() {
   assertEquals(2, modulesLoaded);
-});
\ No newline at end of file
+});