YongHao Hu : msvcp120/tests: Fix error test case of tr2_sys_Copy_file in FAT filesystem.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Aug 5 10:28:04 CDT 2015


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

Author: YongHao Hu <christopherwuy at gmail.com>
Date:   Sun Aug  2 11:24:44 2015 +0800

msvcp120/tests: Fix error test case of tr2_sys_Copy_file in FAT filesystem.

---

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

diff --git a/dlls/msvcp120/tests/msvcp120.c b/dlls/msvcp120/tests/msvcp120.c
index bc7c69b..84eb096 100644
--- a/dlls/msvcp120/tests/msvcp120.c
+++ b/dlls/msvcp120/tests/msvcp120.c
@@ -564,7 +564,6 @@ static void test_tr2_sys__Copy_file(void)
         { "f1", "tr2_test_dir\\f1_copy", TRUE, ERROR_SUCCESS, FALSE },
         { "f1", "tr2_test_dir\\f1_copy", TRUE, ERROR_FILE_EXISTS, FALSE },
         { "f1", "tr2_test_dir\\f1_copy", FALSE, ERROR_SUCCESS, FALSE },
-        { "f1", "tr2_test_dir", TRUE, ERROR_ACCESS_DENIED, TRUE },
         { "tr2_test_dir", "f1", TRUE, ERROR_ACCESS_DENIED, FALSE },
         { "tr2_test_dir", "tr2_test_dir_copy", TRUE, ERROR_ACCESS_DENIED, FALSE },
         { NULL, "f1", TRUE, ERROR_INVALID_PARAMETER, TRUE },
@@ -594,6 +593,9 @@ static void test_tr2_sys__Copy_file(void)
             ok(p_tr2_sys__File_size(tests[i].source) == p_tr2_sys__File_size(tests[i].dest),
                     "test_tr2_sys__Copy_file(): test %d failed, two files' size are not equal\n", i+1);
     }
+    ret = p_tr2_sys__Copy_file("f1", "tr2_test_dir", TRUE);
+    ok(ret==ERROR_ACCESS_DENIED || ret==ERROR_FILE_EXISTS,
+            "test_tr2_sys__Copy_file(): expect: ERROR_ACCESS_DENIED or ERROR_FILE_EXISTS, got %d\n", ret);
 
     ok(DeleteFileA("f1"), "expect f1 to exist\n");
     ok(DeleteFileA("f1_copy"), "expect f1_copy to exist\n");




More information about the wine-cvs mailing list