From b6e739a6b30ca46fd6bc280d1a145c8ff2f5f150 Mon Sep 17 00:00:00 2001 From: Xu Meng Date: Tue, 24 Mar 2020 23:22:50 +0800 Subject: [PATCH] test: skip a wasi test on IBMi PASE The API clock_getres with attribute API CLOCK_THREAD_CPUTIME_ID is not supported on IBM i PASE. PR-URL: https://github.com/nodejs/node/pull/32459 Reviewed-By: Richard Lau Reviewed-By: Colin Ihrig Reviewed-By: Anna Henningsen --- test/wasi/test-wasi.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/test/wasi/test-wasi.js b/test/wasi/test-wasi.js index 357eb7531fb..89d8f73d684 100644 --- a/test/wasi/test-wasi.js +++ b/test/wasi/test-wasi.js @@ -57,12 +57,20 @@ if (process.argv[2] === 'wasi-child') { } runWASI({ test: 'cant_dotdot' }); - runWASI({ test: 'clock_getres' }); + + // Tests that are currently unsupported on IBM i PASE. + if (!common.isIBMi) { + runWASI({ test: 'clock_getres' }); + } runWASI({ test: 'exitcode', exitCode: 120 }); runWASI({ test: 'fd_prestat_get_refresh' }); runWASI({ test: 'freopen', stdout: `hello from input2.txt${EOL}` }); runWASI({ test: 'getentropy' }); - runWASI({ test: 'getrusage' }); + + // Tests that are currently unsupported on IBM i PASE. + if (!common.isIBMi) { + runWASI({ test: 'getrusage' }); + } runWASI({ test: 'gettimeofday' }); runWASI({ test: 'link' }); runWASI({ test: 'main_args' });