@@ -111,13 +111,36 @@ assert.doesNotThrow(function() { execFile(cmd, a, o, u); });
111
111
assert . doesNotThrow ( function ( ) { execFile ( cmd , n , o , c ) ; } ) ;
112
112
assert . doesNotThrow ( function ( ) { execFile ( cmd , a , n , c ) ; } ) ;
113
113
assert . doesNotThrow ( function ( ) { execFile ( cmd , a , o , n ) ; } ) ;
114
+ assert . doesNotThrow ( function ( ) { execFile ( cmd , u , u , u ) ; } ) ;
115
+ assert . doesNotThrow ( function ( ) { execFile ( cmd , u , u , c ) ; } ) ;
116
+ assert . doesNotThrow ( function ( ) { execFile ( cmd , u , o , u ) ; } ) ;
117
+ assert . doesNotThrow ( function ( ) { execFile ( cmd , a , u , u ) ; } ) ;
118
+ assert . doesNotThrow ( function ( ) { execFile ( cmd , n , n , n ) ; } ) ;
119
+ assert . doesNotThrow ( function ( ) { execFile ( cmd , n , n , c ) ; } ) ;
120
+ assert . doesNotThrow ( function ( ) { execFile ( cmd , n , o , n ) ; } ) ;
121
+ assert . doesNotThrow ( function ( ) { execFile ( cmd , a , n , n ) ; } ) ;
122
+ assert . doesNotThrow ( function ( ) { execFile ( cmd , a , u ) ; } ) ;
123
+ assert . doesNotThrow ( function ( ) { execFile ( cmd , a , n ) ; } ) ;
124
+ assert . doesNotThrow ( function ( ) { execFile ( cmd , o , u ) ; } ) ;
125
+ assert . doesNotThrow ( function ( ) { execFile ( cmd , o , n ) ; } ) ;
126
+ assert . doesNotThrow ( function ( ) { execFile ( cmd , c , u ) ; } ) ;
127
+ assert . doesNotThrow ( function ( ) { execFile ( cmd , c , n ) ; } ) ;
114
128
115
129
// string is invalid in arg position (this may seem strange, but is
116
130
// consistent across node API, cf. `net.createServer('not options', 'not
117
131
// callback')`
118
132
assert . throws ( function ( ) { execFile ( cmd , s , o , c ) ; } , TypeError ) ;
119
- assert . doesNotThrow ( function ( ) { execFile ( cmd , a , s , c ) ; } ) ;
120
- assert . doesNotThrow ( function ( ) { execFile ( cmd , a , o , s ) ; } ) ;
133
+ assert . throws ( function ( ) { execFile ( cmd , a , s , c ) ; } , TypeError ) ;
134
+ assert . throws ( function ( ) { execFile ( cmd , a , o , s ) ; } , TypeError ) ;
135
+ assert . throws ( function ( ) { execFile ( cmd , a , s ) ; } , TypeError ) ;
136
+ assert . throws ( function ( ) { execFile ( cmd , o , s ) ; } , TypeError ) ;
137
+ assert . throws ( function ( ) { execFile ( cmd , u , u , s ) ; } , TypeError ) ;
138
+ assert . throws ( function ( ) { execFile ( cmd , n , n , s ) ; } , TypeError ) ;
139
+ assert . throws ( function ( ) { execFile ( cmd , a , u , s ) ; } , TypeError ) ;
140
+ assert . throws ( function ( ) { execFile ( cmd , a , n , s ) ; } , TypeError ) ;
141
+ assert . throws ( function ( ) { execFile ( cmd , u , o , s ) ; } , TypeError ) ;
142
+ assert . throws ( function ( ) { execFile ( cmd , n , o , s ) ; } , TypeError ) ;
143
+ assert . doesNotThrow ( function ( ) { execFile ( cmd , c , s ) ; } ) ;
121
144
122
145
123
146
// verify that fork has same argument parsing behaviour as spawn
@@ -131,6 +154,12 @@ assert.doesNotThrow(function() { fork(empty); });
131
154
assert . doesNotThrow ( function ( ) { fork ( empty , a ) ; } ) ;
132
155
assert . doesNotThrow ( function ( ) { fork ( empty , a , o ) ; } ) ;
133
156
assert . doesNotThrow ( function ( ) { fork ( empty , o ) ; } ) ;
157
+ assert . doesNotThrow ( function ( ) { fork ( empty , u , u ) ; } ) ;
158
+ assert . doesNotThrow ( function ( ) { fork ( empty , u , o ) ; } ) ;
159
+ assert . doesNotThrow ( function ( ) { fork ( empty , a , u ) ; } ) ;
160
+ assert . doesNotThrow ( function ( ) { fork ( empty , n , n ) ; } ) ;
161
+ assert . doesNotThrow ( function ( ) { fork ( empty , n , o ) ; } ) ;
162
+ assert . doesNotThrow ( function ( ) { fork ( empty , a , n ) ; } ) ;
134
163
135
164
assert . throws ( function ( ) { fork ( empty , s ) ; } , TypeError ) ;
136
- assert . doesNotThrow ( function ( ) { fork ( empty , a , s ) ; } , TypeError ) ;
165
+ assert . throws ( function ( ) { fork ( empty , a , s ) ; } , TypeError ) ;
0 commit comments