@@ -67,17 +67,22 @@ for (const isolation of ['none', 'process']) {
6767 `--experimental-${ type } -types` , `--experimental-test-isolation=${ isolation } ` ] ;
6868 const child = spawnSync ( process . execPath , args , { cwd : join ( testFixtures , 'matching-patterns' ) } ) ;
6969
70- assert . strictEqual ( child . stderr . toString ( ) , '' ) ;
71- const stdout = child . stdout . toString ( ) ;
72-
73- assert . match ( stdout , / o k 1 - t h i s s h o u l d p a s s / ) ;
74- assert . match ( stdout , / o k 2 - t h i s s h o u l d p a s s / ) ;
75- assert . match ( stdout , / o k 3 - t h i s s h o u l d p a s s / ) ;
76- assert . match ( stdout , / o k 4 - t h i s s h o u l d p a s s / ) ;
77- assert . match ( stdout , / o k 5 - t h i s s h o u l d p a s s / ) ;
78- assert . match ( stdout , / o k 6 - t h i s s h o u l d p a s s / ) ;
79- assert . strictEqual ( child . status , 0 ) ;
80- assert . strictEqual ( child . signal , null ) ;
70+ if ( ! process . config . variables . node_use_amaro ) {
71+ // e.g. Compiled with `--without-amaro`.
72+ assert . strictEqual ( child . status , 1 ) ;
73+ } else {
74+ assert . strictEqual ( child . stderr . toString ( ) , '' ) ;
75+ const stdout = child . stdout . toString ( ) ;
76+
77+ assert . match ( stdout , / o k 1 - t h i s s h o u l d p a s s / ) ;
78+ assert . match ( stdout , / o k 2 - t h i s s h o u l d p a s s / ) ;
79+ assert . match ( stdout , / o k 3 - t h i s s h o u l d p a s s / ) ;
80+ assert . match ( stdout , / o k 4 - t h i s s h o u l d p a s s / ) ;
81+ assert . match ( stdout , / o k 5 - t h i s s h o u l d p a s s / ) ;
82+ assert . match ( stdout , / o k 6 - t h i s s h o u l d p a s s / ) ;
83+ assert . strictEqual ( child . status , 0 ) ;
84+ assert . strictEqual ( child . signal , null ) ;
85+ }
8186 }
8287
8388 {
0 commit comments