Paul Vriens : kernel32/tests: Skip some tests if needed (WinXP Home).
Alexandre Julliard
julliard at winehq.org
Fri Dec 4 09:11:31 CST 2009
Module: wine
Branch: master
Commit: c2f5442f2ae5b3c9fe4bc33cd8f70cab0b6ed9d0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c2f5442f2ae5b3c9fe4bc33cd8f70cab0b6ed9d0
Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date: Fri Dec 4 13:43:08 2009 +0100
kernel32/tests: Skip some tests if needed (WinXP Home).
---
dlls/kernel32/tests/path.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/dlls/kernel32/tests/path.c b/dlls/kernel32/tests/path.c
index 02348c2..104a48c 100644
--- a/dlls/kernel32/tests/path.c
+++ b/dlls/kernel32/tests/path.c
@@ -1026,7 +1026,15 @@ static void test_GetLongPathNameA(void)
lstrcatA(longpath, strchr(temppath, '\\') + 1);
/* NULL test */
+ SetLastError(0xdeadbeef);
length = pGetLongPathNameA(unc_short, NULL, 0);
+ if (length == 0 && GetLastError() == ERROR_BAD_NETPATH)
+ {
+ /* Seen on Window XP Home */
+ win_skip("UNC with computername is not supported\n");
+ DeleteFileA(tempfile);
+ return;
+ }
explength = lstrlenA(longpath) + 1;
todo_wine
ok(length == explength, "Wrong length %d, expected %d\n", length, explength);
More information about the wine-cvs
mailing list