summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/mjsunit/test-module-loading.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/mjsunit/test-module-loading.js b/test/mjsunit/test-module-loading.js
index 9659005d1..769c1b45a 100644
--- a/test/mjsunit/test-module-loading.js
+++ b/test/mjsunit/test-module-loading.js
@@ -5,6 +5,7 @@ debug("load test-module-loading.js");
var a = require("./fixtures/a");
var d = require("./fixtures/b/d");
var d2 = require("./fixtures/b/d");
+var d3 = require(require('path').dirname(__filename)+"/fixtures/b/d");
assertFalse(false, "testing the test program.");
@@ -23,6 +24,9 @@ assertEquals("D", d.D());
assertInstanceof(d2.D, Function);
assertEquals("D", d2.D());
+assertInstanceof(d3.D, Function);
+assertEquals("D", d3.D());
+
process.addListener("exit", function () {
assertInstanceof(a.A, Function);
assertEquals("A done", a.A());