Skip to content

Commit d103d77

Browse files
aduh95danielleadams
authored andcommitted
test: skip test depending on overlapped-checker when not available
PR-URL: #45015 Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 5544c55 commit d103d77

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

+4
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ const exeExtension = process.platform === 'win32' ? '.exe' : '';
3333
const exe = 'overlapped-checker' + exeExtension;
3434
const exePath = 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
const child = child_process.spawn(exePath, [], {
3741
stdio: ['overlapped', 'pipe', 'pipe']
3842
});

0 commit comments

Comments
 (0)