ibmi now reports os400 instead of aix
- update platform check in poll to allow for os400
- update wasi-sdk level to 20
- document the level of wasi-sdk used to compile the tests
- remove platform check in readdir test as it does not seem to be
needed with wasi-sdk version 20
- comment out tests for some clocks which are no longer available when
compiling with wasi-sdk level 20. These may be added back after
https://github.com/WebAssembly/wasi-libc/issues/266 is resolved.
Signed-off-by: Michael Dawson <midawson@redhat.com>
PR-URL: https://github.com/nodejs/node/pull/49953
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
20 lines
483 B
C
20 lines
483 B
C
#include <assert.h>
|
|
#include <time.h>
|
|
|
|
int main() {
|
|
struct timespec ts;
|
|
int r;
|
|
|
|
// supported clocks
|
|
r = clock_getres(CLOCK_REALTIME, &ts);
|
|
assert(r == 0);
|
|
r = clock_getres(CLOCK_MONOTONIC, &ts);
|
|
assert(r == 0);
|
|
// don't run these tests until
|
|
// https://github.com/WebAssembly/wasi-libc/issues/266
|
|
// is resolved
|
|
// r = clock_getres(CLOCK_PROCESS_CPUTIME_ID, &ts);
|
|
// assert(r == 0);
|
|
// r = clock_getres(CLOCK_THREAD_CPUTIME_ID, &ts);
|
|
// assert(r == 0);
|
|
}
|