From 4df7269ba892c51c5907aed63fd9699c94821cc7 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sun, 21 Dec 2025 11:28:42 +0100 Subject: [PATCH] test96: fix to accept non-unity memdump content with MSVC In unity builds the source filename (via `__FILE__`) has no path (or uses slashes?), while in non-unity ones it does contain backslashes on Windows, with MSVC. Fix the test to recognize backslashes in the `stripfile` regexp. Seen in MSVC jobs in CI: ```diff -MEM tool_cfgable.c[LF] -MEM tool_paramhlp.c[LF] -MEM tool_cfgable.c[LF] -MEM tool_cfgable.c[LF] -MEM tool_cfgable.c[LF] -MEM tool_cfgable.c[LF] +MEM D:\a\curl\curl\src\tool_cfgable.c[LF] +MEM D:\a\curl\curl\src\tool_paramhlp.c[LF] +MEM D:\a\curl\curl\src\tool_cfgable.c[LF] +MEM D:\a\curl\curl\src\tool_cfgable.c[LF] +MEM D:\a\curl\curl\src\tool_cfgable.c[LF] +MEM D:\a\curl\curl\src\tool_cfgable.c[LF] ``` Ref: https://github.com/curl/curl/actions/runs/20408366058/job/58641468316?pr=20061#step:13:303 Ref: https://github.com/curl/curl/actions/runs/20408522070/job/58641826216?pr=20064#step:13:298 Closes #20064 --- tests/data/test96 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/data/test96 b/tests/data/test96 index 1eaa7f9651..eb82903b30 100644 --- a/tests/data/test96 +++ b/tests/data/test96 @@ -37,7 +37,7 @@ MEM tool_cfgable.c $_ = '' if((($_ !~ /tool_paramhlp/) and ($_ !~ /tool_cfgable/)) || ($_ =~ /free\(\(nil\)\)/)) s/:\d+.*// -s:^(MEM )(.*/)(.*):$1$3: +s:^(MEM )(.*[/\\])(.*):$1$3: