Skip to content

Commit

Permalink
test: Allow all valid AIX rc in test-stdio-closed
Browse files Browse the repository at this point in the history
Fixes: nodejs#10234

Allow either of the two possible return codes on AIX to
be considered successful on test-stdio-closed.js
  • Loading branch information
Stewart X Addison committed Dec 12, 2016
1 parent 4fffe32 commit e133cce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/parallel/test-stdio-closed.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,8 @@ const cmd = `"${process.execPath}" "${__filename}" child 1>&- 2>&-`;
const proc = spawn('/bin/sh', ['-c', cmd], { stdio: 'inherit' });

proc.on('exit', common.mustCall(function(exitCode) {
assert.strictEqual(exitCode, common.isAix ? 126 : 42);
if (common.isAix)
assert([42, 126].includes(exitCode));
else
assert.strictEqual(exitCode, 42);
}));

0 comments on commit e133cce

Please sign in to comment.