[1/2] shell32/tests: Fix path comparison

André Hentschel nerv at dawncrow.de
Tue Sep 6 12:47:27 CDT 2011


---
 dlls/shell32/tests/shlexec.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/dlls/shell32/tests/shlexec.c b/dlls/shell32/tests/shlexec.c
index bae0c21..d560a74 100644
--- a/dlls/shell32/tests/shlexec.c
+++ b/dlls/shell32/tests/shlexec.c
@@ -2214,6 +2214,7 @@ static void test_commandline(void)
 static void test_directory(void)
 {
     char path[MAX_PATH], newdir[MAX_PATH];
+    char libext[] = ".so", *extpos;
     char params[1024];
     int rc;
 
@@ -2236,9 +2237,12 @@ static void test_directory(void)
     ok(rc > 32, "%s returned %d\n", shell_call, rc);
     okChildInt("argcA", 4);
     okChildString("argvA3", "Exec");
-    todo_wine okChildPath("longPath", path);
 
+    /* strip the .so extension for comparison */
     DeleteFile(path);
+    if ((extpos = strstr(path, libext))) *extpos = 0;
+    todo_wine okChildPath("longPath", path);
+
     RemoveDirectoryA(newdir);
 }
 
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list