mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Decoupled generics (#2695)
This commit is contained in:
committed by
GitHub
parent
bf1d401566
commit
d96624c578
@@ -452,7 +452,11 @@ fn bool test_file(Path file_path, TestOutput* output, usz index)
|
||||
update_status(index, file_path, output);
|
||||
bool single;
|
||||
int thread_id = context.thread_id_counter.add(1);
|
||||
$if env::WIN32:
|
||||
Path test_dir = context.start_cwd.tappend(string::tformat("_c3test_%s", thread_id))!!;
|
||||
$else
|
||||
Path test_dir = path::temp_directory(tmem).tappend(string::tformat("_c3test_%s", thread_id))!!;
|
||||
$endif
|
||||
(void)path::rmtree(test_dir);
|
||||
defer (void)path::rmtree(test_dir);
|
||||
if (@catch(path::mkdir(test_dir)))
|
||||
|
||||
Reference in New Issue
Block a user