diff options
author | Antoine du Hamel <duhamelantoine1995@gmail.com> | 2022-10-15 16:27:17 -0500 |
---|---|---|
committer | Beth Griggs <bethanyngriggs@gmail.com> | 2023-03-27 13:01:47 +0100 |
commit | efe1be47ecf0add63db7c4967f563d10d8489c4a (patch) | |
tree | 416364225198797d15f68ff52509bdc3327c66fa | |
parent | 768e56227edce87ed0a078adc23583e4783d33f8 (diff) | |
download | node-new-efe1be47ecf0add63db7c4967f563d10d8489c4a.tar.gz |
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>
-rw-r--r-- | test/parallel/test-child-process-stdio-overlapped.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/parallel/test-child-process-stdio-overlapped.js b/test/parallel/test-child-process-stdio-overlapped.js index 70a6454ff8..5c48e7ee10 100644 --- a/test/parallel/test-child-process-stdio-overlapped.js +++ b/test/parallel/test-child-process-stdio-overlapped.js @@ -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'] }); |