Skip to content

Commit 055c6e8

Browse files
authored
Fix warning in test code. NFC (#19068)
1 parent de7cbc5 commit 055c6e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_other.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -11419,13 +11419,13 @@ def test_deterministic(self):
1141911419
int main () {
1142011420
timespec now;
1142111421
clock_gettime(CLOCK_REALTIME, &now);
11422-
printf("C now: %ld %ld\n", now.tv_sec, now.tv_nsec);
11422+
printf("C now: %lld %ld\n", now.tv_sec, now.tv_nsec);
1142311423
printf("js now: %f\n", emscripten_get_now());
1142411424
printf("C randoms: %d %d %d\n", rand(), rand(), rand());
1142511425
printf("JS random: %d\n", EM_ASM_INT({ return Math.random() }));
1142611426
}
1142711427
''')
11428-
self.run_process([EMXX, 'src.cpp', '-sDETERMINISTIC'])
11428+
self.run_process([EMXX, 'src.cpp', '-sDETERMINISTIC'] + self.get_emcc_args())
1142911429
one = self.run_js('a.out.js')
1143011430
# ensure even if the time resolution is 1 second, that if we see the real
1143111431
# time we'll see a difference

0 commit comments

Comments
 (0)