Hans Leidekker : msvcp120/tests: Fix test failures on Windows XP.

Alexandre Julliard julliard at winehq.org
Tue Jan 17 15:10:32 CST 2017


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

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Tue Jan 17 10:49:28 2017 +0100

msvcp120/tests: Fix test failures on Windows XP.

Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msvcp120/tests/msvcp120.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/msvcp120/tests/msvcp120.c b/dlls/msvcp120/tests/msvcp120.c
index 5df5440..d70c0df 100644
--- a/dlls/msvcp120/tests/msvcp120.c
+++ b/dlls/msvcp120/tests/msvcp120.c
@@ -1625,7 +1625,7 @@ static void test_tr2_sys__Symlink(void)
         errno = 0xdeadbeef;
         SetLastError(0xdeadbeef);
         ret = p_tr2_sys__Symlink(tests[i].existing_path, tests[i].new_path);
-        if(!i && (ret==ERROR_PRIVILEGE_NOT_HELD || ret==ERROR_INVALID_FUNCTION)) {
+        if(!i && (ret==ERROR_PRIVILEGE_NOT_HELD || ret==ERROR_INVALID_FUNCTION || ret==ERROR_CALL_NOT_IMPLEMENTED)) {
             win_skip("Privilege not held or symbolic link not supported, skipping symbolic link tests.\n");
             ok(DeleteFileA("f1"), "expect f1 to exist\n");
             ret = p_tr2_sys__Remove_dir("tr2_test_dir");
@@ -1684,7 +1684,7 @@ static void test_tr2_sys__Unlink(void)
     CloseHandle(file);
 
     ret = p_tr2_sys__Symlink("tr2_test_dir/f1", "tr2_test_dir/f1_symlink");
-    if(ret==ERROR_PRIVILEGE_NOT_HELD || ret==ERROR_INVALID_FUNCTION) {
+    if(ret==ERROR_PRIVILEGE_NOT_HELD || ret==ERROR_INVALID_FUNCTION || ret==ERROR_CALL_NOT_IMPLEMENTED) {
         tests[0].last_error = ERROR_FILE_NOT_FOUND;
         win_skip("Privilege not held or symbolic link not supported, skipping symbolic link tests.\n");
     }else {




More information about the wine-cvs mailing list