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