kernel32/tests: Skip some tests on Win9x and WinME.

This commit is contained in:
Paul Vriens 2009-01-29 19:46:50 +01:00 committed by Alexandre Julliard
parent 3fd732b25b
commit a21ea16f90
1 changed files with 13 additions and 1 deletions

View File

@ -262,7 +262,7 @@ static void test_profile_sections_names(void)
ret = GetPrivateProfileSectionNamesW( bufW, 29, testfile3W ); ret = GetPrivateProfileSectionNamesW( bufW, 29, testfile3W );
if (ret == 0 && (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)) if (ret == 0 && (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED))
{ {
skip("GetPrivateProfileSectionNamesW is not implemented\n"); win_skip("GetPrivateProfileSectionNamesW is not implemented\n");
DeleteFileA( testfile3 ); DeleteFileA( testfile3 );
return; return;
} }
@ -475,6 +475,18 @@ static void test_GetPrivateProfileString(const char *content, const char *descri
trace("test_GetPrivateProfileStringA: %s\n", descript); trace("test_GetPrivateProfileStringA: %s\n", descript);
if(!lstrcmpA(descript, "CR only"))
{
SetLastError(0xdeadbeef);
ret = GetPrivateProfileStringW(NULL, NULL, NULL,
NULL, 0, NULL);
if (!ret && GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)
{
win_skip("Win9x and WinME don't handle 'CR only' correctly\n");
return;
}
}
create_test_file(filename, content, lstrlenA(content)); create_test_file(filename, content, lstrlenA(content));
/* Run this test series with caching. Wine won't cache profile /* Run this test series with caching. Wine won't cache profile