kernel32/tests: Show that ini cache must not be used if file no longer exists.

This commit is contained in:
Bruno Jesus 2012-03-28 02:26:42 -03:00 committed by Alexandre Julliard
parent 426535a7dd
commit a4e3268886
1 changed files with 7 additions and 0 deletions

View File

@ -500,6 +500,13 @@ static void test_profile_refresh(void)
/* This also deletes the file */
CloseHandle(h);
/* Cache must be invalidated if file no longer exists and default must be returned */
SetLastError(0xdeadbeef);
res = GetPrivateProfileInt(SECTION, KEY, 421, testfile);
todo_wine ok( res == 421 ||
broken(res == 0 && GetLastError() == 0xdeadbeef), /* Win9x, WinME */
"Got %d instead of 421\n", res);
}
static void create_test_file(LPCSTR name, LPCSTR data, DWORD size)