reg/tests: Test result for deleting key that doesn't exist.

This commit is contained in:
Jonathan Vollebregt 2014-11-06 22:17:13 +01:00 committed by Alexandre Julliard
parent 8035f90f3b
commit e6acf969e7
1 changed files with 3 additions and 0 deletions

View File

@ -396,6 +396,9 @@ static void test_delete(void)
ok(r == REG_EXIT_SUCCESS, "got exit code %d, expected 0\n", r);
err = RegOpenKeyExA(HKEY_CURRENT_USER, KEY_BASE, 0, KEY_READ, &hkey);
ok(err == ERROR_FILE_NOT_FOUND, "got %d\n", err);
run_reg_exe("reg delete HKCU\\" KEY_BASE " /f", &r);
ok(r == REG_EXIT_FAILURE, "got exit code %u\n", r);
}
static void test_query(void)