Add test-stdout-close-catch and test-stdout-stderr-reading to the list of unit test.
Reviewed-by: asquare
This commit is contained in:
parent
173007811b
commit
fdc39a4ef8
@ -315,6 +315,7 @@
|
||||
<apply-diff src="test/simple" mod="${test.dir}/simple" name="test-repl.js"/>
|
||||
<apply-diff src="test/simple" mod="${test.dir}/simple" name="test-script-context.js"/>
|
||||
<apply-diff src="test/simple" mod="${test.dir}/simple" name="test-stdin-from-file.js"/>
|
||||
<apply-diff src="test/simple" mod="${test.dir}/simple" name="test-stdout-close-catch.js"/>
|
||||
<apply-diff src="test/simple" mod="${test.dir}/simple" name="test-stdout-to-file.js"/>
|
||||
<apply-diff src="test/simple" mod="${test.dir}/simple" name="test-stream2-push.js"/>
|
||||
<apply-diff src="test/simple" mod="${test.dir}/simple" name="test-stream2-read-sync-stack.js"/>
|
||||
@ -404,6 +405,7 @@
|
||||
<apply-patch-file target="${test.dir}/simple" dir="test/simple" name="test-repl.js"/>
|
||||
<apply-patch-file target="${test.dir}/simple" dir="test/simple" name="test-script-context.js"/>
|
||||
<apply-patch-file target="${test.dir}/simple" dir="test/simple" name="test-stdin-from-file.js"/>
|
||||
<apply-patch-file target="${test.dir}/simple" dir="test/simple" name="test-stdout-close-catch.js"/>
|
||||
<apply-patch-file target="${test.dir}/simple" dir="test/simple" name="test-stdout-to-file.js"/>
|
||||
<apply-patch-file target="${test.dir}/simple" dir="test/simple" name="test-stream2-push.js"/>
|
||||
<apply-patch-file target="${test.dir}/simple" dir="test/simple" name="test-stream2-read-sync-stack.js"/>
|
||||
|
21
patches/test/simple/test-stdout-close-catch.js.patch
Normal file
21
patches/test/simple/test-stdout-close-catch.js.patch
Normal file
@ -0,0 +1,21 @@
|
||||
--- ../nodejs/test/simple/test-stdout-close-catch.js 2014-01-07 15:32:53.556005400 -0800
|
||||
+++ test/simple/test-stdout-close-catch.js 2014-01-07 16:20:47.154233600 -0800
|
||||
@@ -28,14 +28,15 @@
|
||||
|
||||
var testScript = path.join(common.fixturesDir, 'catch-stdout-error.js');
|
||||
|
||||
-var cmd = JSON.stringify(process.execPath) + ' ' +
|
||||
+var cmd = process.execPath + ' ' +
|
||||
JSON.stringify(testScript) + ' | ' +
|
||||
- JSON.stringify(process.execPath) + ' ' +
|
||||
+ process.execPath + ' ' +
|
||||
'-pe "process.exit(1);"';
|
||||
|
||||
var child = child_process.exec(cmd);
|
||||
var output = '';
|
||||
-var outputExpect = { 'code': 'EPIPE',
|
||||
+var outputExpect = { 'message' : 'write EPIPE',
|
||||
+ 'code': 'EPIPE',
|
||||
'errno': 'EPIPE',
|
||||
'syscall': 'write' };
|
||||
|
@ -521,7 +521,9 @@ source.test.simple.list = \
|
||||
test-stdin-resume-pause.js \
|
||||
test-stdio-readable-writable.js \
|
||||
test-stdout-cannot-be-closed-child-process-pipe.js \
|
||||
test-stdout-close-catch.js \
|
||||
test-stdout-close-unref.js \
|
||||
test-stdout-stderr-reading.js \
|
||||
test-stdout-to-file.js \
|
||||
test-stream-big-push.js \
|
||||
test-stream-pipe-after-end.js \
|
||||
|
Loading…
Reference in New Issue
Block a user