Francois Gouget : winetest: Fix the path to the ntoskrnl.exe/tests source.
Module: wine Branch: master Commit: f932fb327ae1459dac54a488bc4a0a5dbdd49cd4 URL: https://source.winehq.org/git/wine.git/?a=commit;h=f932fb327ae1459dac54a488b... Author: Francois Gouget <fgouget(a)codeweavers.com> Date: Thu Apr 29 15:14:40 2021 +0200 winetest: Fix the path to the ntoskrnl.exe/tests source. It's the only test with a .exe extension for which the source is not in programs! Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- programs/winetest/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/programs/winetest/main.c b/programs/winetest/main.c index cb2f23a161e..a05c8f9939b 100644 --- a/programs/winetest/main.c +++ b/programs/winetest/main.c @@ -518,7 +518,8 @@ static const char* get_test_source_file(const char* test, const char* subtest) static char buffer[MAX_PATH]; int len = strlen(test); - if (len > 4 && !strcmp( test + len - 4, ".exe" )) + if (len > 4 && !strcmp( test + len - 4, ".exe" ) && + strcmp( test, "ntoskrnl.exe" )) /* the one exception! */ { len = sprintf(buffer, "programs/%s", test) - 4; buffer[len] = 0;
participants (1)
-
Alexandre Julliard