Huw Davies : shell32/tests: Win XP splits the args if there are spaces in the path.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Jul 7 08:11:57 CDT 2015


Module: wine
Branch: master
Commit: c5053f57124d76d5397e92e78eafb4e1607d6ff2
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c5053f57124d76d5397e92e78eafb4e1607d6ff2

Author: Huw Davies <huw at codeweavers.com>
Date:   Mon Jul  6 15:02:57 2015 +0100

shell32/tests: Win XP splits the args if there are spaces in the path.

This isn't seen on winetest runs, but is when jobs are submitted to
the testbot.  Presumably the path of the executable is different in
the two cases.

---

 dlls/shell32/tests/shlexec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/shell32/tests/shlexec.c b/dlls/shell32/tests/shlexec.c
index f81794e..0d2773d 100644
--- a/dlls/shell32/tests/shlexec.c
+++ b/dlls/shell32/tests/shlexec.c
@@ -1219,7 +1219,7 @@ static void test_commandline2argv(void)
 
     *strW = 0;
     args = CommandLineToArgvW(strW, &numargs);
-    ok(numargs == 1, "expected 1 args, got %d\n", numargs);
+    ok(numargs == 1 || broken(numargs > 1), "expected 1 args, got %d\n", numargs);
     ok(!args || (!args[numargs] || broken(args[numargs] != NULL) /* before Vista */),
        "expected NULL-terminated list of commandline arguments\n");
     if (numargs == 1)




More information about the wine-cvs mailing list