Skip to content

Commit a6158be

Browse files
authored
Try to make usleep test more robust (WebAssembly#681)
Match clock_nanosleep where `<=1` is tested, not `>=0`. See if this fixes spurious failures.
1 parent f164658 commit a6158be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/src/usleep.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ int main(void)
3232
/ ns_to_sleep;
3333

3434
// Allow the actual sleep time to be twice as much as the requested time
35-
TEST(difference >= 0 && difference <= 1);
35+
TEST(difference <= 1);
3636

3737
return t_status;
3838
}

0 commit comments

Comments
 (0)