@@ -67,17 +67,22 @@ for (const isolation of ['none', 'process']) {
67
67
`--experimental-${ type } -types` , `--experimental-test-isolation=${ isolation } ` ] ;
68
68
const child = spawnSync ( process . execPath , args , { cwd : join ( testFixtures , 'matching-patterns' ) } ) ;
69
69
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
+ }
81
86
}
82
87
83
88
{
0 commit comments