File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -11419,13 +11419,13 @@ def test_deterministic(self):
11419
11419
int main () {
11420
11420
timespec now;
11421
11421
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);
11423
11423
printf("js now: %f\n", emscripten_get_now());
11424
11424
printf("C randoms: %d %d %d\n", rand(), rand(), rand());
11425
11425
printf("JS random: %d\n", EM_ASM_INT({ return Math.random() }));
11426
11426
}
11427
11427
''')
11428
- self.run_process([EMXX, 'src.cpp', '-sDETERMINISTIC'])
11428
+ self.run_process([EMXX, 'src.cpp', '-sDETERMINISTIC'] + self.get_emcc_args() )
11429
11429
one = self.run_js('a.out.js')
11430
11430
# ensure even if the time resolution is 1 second, that if we see the real
11431
11431
# time we'll see a difference
You can’t perform that action at this time.
0 commit comments