Decoupled generics (#2695)

This commit is contained in:
Christoffer Lerno
2025-12-29 17:01:03 +01:00
committed by GitHub
parent bf1d401566
commit d96624c578
68 changed files with 1263 additions and 808 deletions

View File

@@ -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)))