From 857ab15aaaca094445825a62d27d7c859cd64711 Mon Sep 17 00:00:00 2001 From: Nikita Smith Date: Thu, 7 May 2026 17:28:31 -0700 Subject: [PATCH] hack-in temp backslash for windows --- src/torture/torture.c | 4 ++++ src/torture/torture_radlink.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/torture/torture.c b/src/torture/torture.c index 5e34e843..b2ff533e 100644 --- a/src/torture/torture.c +++ b/src/torture/torture.c @@ -137,7 +137,11 @@ t_delete_dir(String8 path) internal String8 t_make_file_path(Arena *arena, String8 name) { +#if OS_WINDOWS + return push_str8f(arena, "%S\\%S", g_wdir, name); +#else return push_str8f(arena, "%S/%S", g_wdir, name); +#endif } internal B32 diff --git a/src/torture/torture_radlink.c b/src/torture/torture_radlink.c index 3e8a7d21..a53ba3b8 100644 --- a/src/torture/torture_radlink.c +++ b/src/torture/torture_radlink.c @@ -5134,7 +5134,7 @@ TEST(debug_p_and_debug_t_in_obj) String8 expected_line = str8f(arena, "Warning(%03d): %S: multiple sections with debug types detected, obj must have either .debug$T or .debug$P; discarding both sections", LNK_Warning_MultipleDebugTAndDebugP, pch_obj_path); while (output.size) { String8 line = t_chop_line(&output); - found_warning = str8_match(line, expected_line, StringMatchFlag_CaseInsensitive); + found_warning = str8_match(line, expected_line, StringMatchFlag_CaseInsensitive|StringMatchFlag_SlashInsensitive); if (found_warning) { break; } } T_Ok(found_warning);