From 36d18e440bfcca389c2fe3812b5d283b15bc6bb2 Mon Sep 17 00:00:00 2001 From: Nikita Smith Date: Sat, 11 Apr 2026 12:51:00 -0700 Subject: [PATCH] delete exes to appease windows defender --- src/torture/torture_radlink.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/torture/torture_radlink.c b/src/torture/torture_radlink.c index d3ec8d7f..9d724928 100644 --- a/src/torture/torture_radlink.c +++ b/src/torture/torture_radlink.c @@ -4901,18 +4901,18 @@ T_BeginTest(infer_asan) #if OS_WINDOWS T_BeginTest(determ_test) { - // compile the test target (torture) - String8 cl_line = str8f(arena, "/fsanitize=address /c /Z7 /Fo:test.obj -I%S /Zc:preprocessor %S/torture/torture_main.c", t_src_path(), t_src_path()); - String8 cl_out = {0}; - t_invoke_(t_cl_path(), cl_line, max_U64, arena, &cl_out); - T_Ok(g_last_exit_code == 0); - // clean up t_delete_file(str8_lit("a.exe")); t_delete_file(str8_lit("b.exe")); t_delete_file(str8_lit("a.pdb")); t_delete_file(str8_lit("b.pdb")); + // compile the test target (torture) + String8 cl_line = str8f(arena, "/fsanitize=address /c /Z7 /Fo:test.obj -I%S /Zc:preprocessor %S/torture/torture_main.c", t_src_path(), t_src_path()); + String8 cl_out = {0}; + t_invoke_(t_cl_path(), cl_line, max_U64, arena, &cl_out); + T_Ok(g_last_exit_code == 0); + // single-threaded link String8 refs_path = t_make_file_path(arena, str8_lit("b.types")); t_invoke_linkerf("test.obj /debug:full /rad_time_stamp:0 /rad_workers:1 /rad_store_types:%S /out:a.exe", refs_path); @@ -4930,7 +4930,9 @@ T_BeginTest(determ_test) for EachIndex(i, 50) { Temp temp = temp_begin(arena); + t_delete_file(str8_lit("a.exe")); t_delete_file(str8_lit("a.pdb")); + t_invoke_linkerf("test.obj /debug:full /rad_time_stamp:0 /out:a.exe"); T_Ok(g_last_exit_code == 0);