summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine du Hamel <duhamelantoine1995@gmail.com>2022-10-15 16:27:17 -0500
committerBeth Griggs <bethanyngriggs@gmail.com>2023-03-27 13:01:47 +0100
commitefe1be47ecf0add63db7c4967f563d10d8489c4a (patch)
tree416364225198797d15f68ff52509bdc3327c66fa
parent768e56227edce87ed0a078adc23583e4783d33f8 (diff)
downloadnode-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.js4
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']
});