Skip to content

Commit

Permalink
test: skip test depending on overlapped-checker when not available
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
aduh95 authored Oct 15, 2022
1 parent 5e30559 commit bfa0040
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/parallel/test-child-process-stdio-overlapped.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']
});
Expand Down

0 comments on commit bfa0040

Please sign in to comment.