File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 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):
1141911419int 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
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments