File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2222'use strict' ;
2323require ( '../common' ) ;
2424const assert = require ( 'assert' ) ;
25+ const debug = require ( 'util' ) . debuglog ( 'test' ) ;
2526
2627const testCases = require ( '../fixtures/process-exit-code-cases' ) ;
2728
@@ -30,7 +31,7 @@ if (!process.argv[2]) {
3031} else {
3132 const i = parseInt ( process . argv [ 2 ] ) ;
3233 if ( Number . isNaN ( i ) ) {
33- console . log ( 'Invalid test case index' ) ;
34+ debug ( 'Invalid test case index' ) ;
3435 process . exit ( 100 ) ;
3536 return ;
3637 }
@@ -48,7 +49,7 @@ function parent() {
4849 assert . strictEqual (
4950 code , exit ,
5051 `wrong exit for ${ arg } -${ name } \nexpected:${ exit } but got:${ code } ` ) ;
51- console . log ( `ok - ${ arg } exited with ${ exit } ` ) ;
52+ debug ( `ok - ${ arg } exited with ${ exit } ` ) ;
5253 } ) ;
5354 } ;
5455
You can’t perform that action at this time.
0 commit comments