File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -51,8 +51,15 @@ if (process.argv[2] === 'child') {
51
51
child . stderr . on ( 'data' , ( d ) => { errData = Buffer . concat ( [ errData , d ] ) ; } ) ;
52
52
child . stdout . on ( 'data' , ( d ) => { outData = Buffer . concat ( [ outData , d ] ) ; } ) ;
53
53
54
- child . on ( 'close' , common . mustCall ( ( code ) => {
55
- assert . strictEqual ( code , 1 ) ;
54
+ child . on ( 'close' , common . mustCall ( ( code , signal ) => {
55
+ if ( ( common . isAIX ||
56
+ ( common . isLinux && process . arch === 'x64' ) ) &&
57
+ signal === 'SIGABRT' ) {
58
+ // XXX: The child process could be aborted due to unknown reasons. Work around it.
59
+ } else {
60
+ assert . strictEqual ( signal , null ) ;
61
+ assert . strictEqual ( code , 1 ) ;
62
+ }
56
63
assert . match ( outData . toString ( ) , heartbeatMsg ,
57
64
'did not crash until we reached offending line of code ' +
58
65
`(found ${ outData } )` ) ;
You can’t perform that action at this time.
0 commit comments