Skip to content

Commit efe1be4

Browse files
aduh95BethGriggs
authored andcommitted
test: skip test depending on overlapped-checker when not available
PR-URL: #45015 Reviewed-By: Rafael Gonzaga <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 768e562 commit efe1be4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎test/parallel/test-child-process-stdio-overlapped.js‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ const exeExtension = process.platform === 'win32' ? '.exe' : ''
3333
constexe='overlapped-checker'+exeExtension;
3434
constexePath=path.join(path.dirname(process.execPath),exe);
3535

36+
if(!require('fs').existsSync(exePath)){
37+
common.skip(exe+' binary is not available');
38+
}
39+
3640
constchild=child_process.spawn(exePath,[],{
3741
stdio: ['overlapped','pipe','pipe']
3842
});

0 commit comments

Comments
(0)