Signed-off-by: Sven Baars sven.wine@gmail.com --- dlls/msvcp140/tests/msvcp140.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/msvcp140/tests/msvcp140.c b/dlls/msvcp140/tests/msvcp140.c index 8ad172495d..727efa0890 100644 --- a/dlls/msvcp140/tests/msvcp140.c +++ b/dlls/msvcp140/tests/msvcp140.c @@ -892,7 +892,8 @@ static void test_Stat(void) perms = 0xdeadbeef; val = p_Stat(sys_path, &perms); ok(directory_file == val, "_Stat(): expect: regular, got %d\n", val); - ok(0777 == perms, "_Stat(): perms expect: 0777, got 0%o\n", perms); + ok(0777 == perms || broken(0555 == perms) /* Windows 8 */, + "_Stat(): perms expect: 0777, got 0%o\n", perms);
if(ret) { todo_wine ok(DeleteFileW(test_f1_linkW), "expect wine_test_dir/f1_link to exist\n");
Hi Sven,
On 11/15/19 5:20 PM, Sven Baars wrote:
val = p_Stat(sys_path, &perms); ok(directory_file == val, "_Stat(): expect: regular, got %d\n", val);
- ok(0777 == perms, "_Stat(): perms expect: 0777, got 0%o\n", perms);
- ok(0777 == perms || broken(0555 == perms) /* Windows 8 */,
"_Stat(): perms expect: 0777, got 0%o\n", perms);
We should probably construct correct perms value based on GetFileAttributesW(sys_path) return.
Thanks, Piotr