Commit 99e7287e authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

advpack: Don't test properties of a file if it can't be created.

parent a072f85b
...@@ -133,8 +133,13 @@ static void test_AddDelBackupEntry(void) ...@@ -133,8 +133,13 @@ static void test_AddDelBackupEntry(void)
/* create the INF file */ /* create the INF file */
res = pAddDelBackupEntry("one\0two\0three\0", "c:\\", "basename", AADBE_ADD_ENTRY); res = pAddDelBackupEntry("one\0two\0three\0", "c:\\", "basename", AADBE_ADD_ENTRY);
ok(res == S_OK, "Expected S_OK, got %d\n", res); ok(res == S_OK, "Expected S_OK, got %d\n", res);
ok(check_ini_file_attr(path), "Expected ini file to be hidden\n"); if (GetFileAttributes(path) != INVALID_FILE_ATTRIBUTES)
ok(DeleteFileA(path), "Expected path to exist\n"); {
ok(check_ini_file_attr(path), "Expected ini file to be hidden\n");
ok(DeleteFileA(path), "Expected path to exist\n");
}
else
win_skip("Test file could not be created\n");
lstrcpyA(path, CURR_DIR); lstrcpyA(path, CURR_DIR);
lstrcatA(path, "\\backup\\basename.INI"); lstrcatA(path, "\\backup\\basename.INI");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment