mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
test: skip test depending on overlapped-checker when not available
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
1 parent
3519d74e87
commit
43677e5a34
1 file changed
+4
@@ -33,6 +33,10 @@ const exeExtension = process.platform === 'win32' ? '.exe' : '';
|
||||
const exe = 'overlapped-checker' + exeExtension;
|
||||
const exePath = path.join(path.dirname(process.execPath), exe);
|
||||
|
||||
if (!require('fs').existsSync(exePath)) {
|
||||
common.skip(exe + ' binary is not available');
|
||||
}
|
||||
|
||||
const child = child_process.spawn(exePath, [], {
|
||||
stdio: ['overlapped', 'pipe', 'pipe']
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user