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 <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 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
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy