@@ -439,20 +439,13 @@ def test_FROZEN_CACHE(self):
439
439
def test_emcc_multiprocess_cache_access (self ):
440
440
restore_and_set_up ()
441
441
442
- create_file ('test.c' , r'''
443
- #include <stdio.h>
444
- int main() {
445
- printf("hello, world!\n");
446
- return 0;
447
- }
448
- ''' )
449
442
cache_dir_name = self .in_dir ('test_cache' )
450
443
libname = cache .get_lib_name ('libc.a' )
451
444
with env_modify ({'EM_CACHE' : cache_dir_name }):
452
445
tasks = []
453
446
num_times_libc_was_built = 0
454
447
for i in range (3 ):
455
- p = self .run_process ([EMCC , 'test .c' , '-O2' , '-o' , '%d.js' % i ], stderr = STDOUT , stdout = PIPE )
448
+ p = self .run_process ([EMCC , test_file ( 'hello_world .c') , '-O2' , '-o' , '%d.js' % i ], stderr = STDOUT , stdout = PIPE )
456
449
tasks += [p ]
457
450
for p in tasks :
458
451
print ('stdout:\n ' , p .stdout )
@@ -479,19 +472,12 @@ def test_emcc_cache_flag(self, use_response_files, relative):
479
472
else :
480
473
cache_dir_name = self .in_dir ('emscripten_cache' )
481
474
self .assertFalse (os .path .exists (cache_dir_name ))
482
- create_file ('test.c' , r'''
483
- #include <stdio.h>
484
- int main() {
485
- printf("hello, world!\n");
486
- return 0;
487
- }
488
- ''' )
489
475
args = ['--cache' , cache_dir_name ]
490
476
if use_response_files :
491
477
rsp = response_file .create_response_file (args , shared .TEMP_DIR )
492
478
args = ['@' + rsp ]
493
479
494
- self .run_process ([EMCC , 'test .c' ] + args , stderr = PIPE )
480
+ self .run_process ([EMCC , test_file ( 'hello_world .c') ] + args , stderr = PIPE )
495
481
if use_response_files :
496
482
os .remove (rsp )
497
483
0 commit comments