summaryrefslogtreecommitdiff
path: root/test/simple/test-pipe-head.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/simple/test-pipe-head.js')
-rw-r--r--test/simple/test-pipe-head.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/simple/test-pipe-head.js b/test/simple/test-pipe-head.js
index 56e4147265..3dbef16d98 100644
--- a/test/simple/test-pipe-head.js
+++ b/test/simple/test-pipe-head.js
@@ -1,10 +1,11 @@
-require('../common');
+common = require("../common");
+assert = common.assert
exec = require('child_process').exec;
join = require('path').join;
nodePath = process.argv[0];
-script = join(fixturesDir, 'print-10-lines.js');
+script = join(common.fixturesDir, 'print-10-lines.js');
cmd = nodePath + ' ' + script + ' | head -2';