Module: wine Branch: master Commit: a21ea16f909d745121b48556df1dcf9553425d5b URL: http://source.winehq.org/git/wine.git/?a=commit;h=a21ea16f909d745121b48556df...
Author: Paul Vriens Paul.Vriens.Wine@gmail.com Date: Thu Jan 29 19:46:50 2009 +0100
kernel32/tests: Skip some tests on Win9x and WinME.
---
dlls/kernel32/tests/profile.c | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/dlls/kernel32/tests/profile.c b/dlls/kernel32/tests/profile.c index 154d6cf..a6a1dd0 100644 --- a/dlls/kernel32/tests/profile.c +++ b/dlls/kernel32/tests/profile.c @@ -262,7 +262,7 @@ static void test_profile_sections_names(void) ret = GetPrivateProfileSectionNamesW( bufW, 29, testfile3W ); if (ret == 0 && (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)) { - skip("GetPrivateProfileSectionNamesW is not implemented\n"); + win_skip("GetPrivateProfileSectionNamesW is not implemented\n"); DeleteFileA( testfile3 ); return; } @@ -475,6 +475,18 @@ static void test_GetPrivateProfileString(const char *content, const char *descri
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));
/* Run this test series with caching. Wine won't cache profile