Huw Davies (@huw) commented about dlls/advapi32/tests/registry.c:
DeleteFileA("saved_key.LOG");
}
+static void test_reg_load_app_key(void) +{
- DWORD ret;
- HKEY childkey;
- DWORD size1;
- DWORD size2;
- HANDLE hivefile;
- HKEY key1 = NULL;
- /* in win 7 we cannot delete the hive file while the process is running */
- /* thats why we don't delete it at the end of the test */
- DeleteFileA("saved_app_key");
- DeleteFileA("saved_app_key.LOG");
This is unfortunate.
One way to cope with this would be to run these tests in a sub-process and then cleanup in the main process once that sub-process finishes. See instances of `winetest_get_mainargs()` for how to handle process creation in the tests.