Commit 407f0d9f authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

kernel32/tests: Fix some test failures on Win9x and WinME (GetPrivateProfileString).

parent 48f035bd
...@@ -509,7 +509,9 @@ static void test_GetPrivateProfileString(const char *content, const char *descri ...@@ -509,7 +509,9 @@ static void test_GetPrivateProfileString(const char *content, const char *descri
ret = GetPrivateProfileStringA(emptystr, "name1", NULL, ret = GetPrivateProfileStringA(emptystr, "name1", NULL,
buf, MAX_PATH, filename); buf, MAX_PATH, filename);
ok(ret == 0, "Expected 0, got %d\n", ret); ok(ret == 0, "Expected 0, got %d\n", ret);
ok(!lstrcmpA(buf, ""), "Expected \"\", got \"%s\"\n", buf); ok(!lstrcmpA(buf, "") ||
broken(!lstrcmpA(buf, "kumquat")), /* Win9x, WinME */
"Expected \"\", got \"%s\"\n", buf);
ok(emptystr_ok(emptystr), "AppName modified\n"); ok(emptystr_ok(emptystr), "AppName modified\n");
/* lpAppName is empty, lpDefault is empty */ /* lpAppName is empty, lpDefault is empty */
...@@ -576,7 +578,9 @@ static void test_GetPrivateProfileString(const char *content, const char *descri ...@@ -576,7 +578,9 @@ static void test_GetPrivateProfileString(const char *content, const char *descri
ret = GetPrivateProfileStringA("section1", emptystr, NULL, ret = GetPrivateProfileStringA("section1", emptystr, NULL,
buf, MAX_PATH, filename); buf, MAX_PATH, filename);
ok(ret == 0, "Expected 0, got %d\n", ret); ok(ret == 0, "Expected 0, got %d\n", ret);
ok(!lstrcmpA(buf, ""), "Expected \"\", got \"%s\"\n", buf); ok(!lstrcmpA(buf, "") ||
broken(!lstrcmpA(buf, "kumquat")), /* Win9x, WinME */
"Expected \"\", got \"%s\"\n", buf);
ok(emptystr_ok(emptystr), "KeyName modified\n"); ok(emptystr_ok(emptystr), "KeyName modified\n");
/* lpKeyName is empty, lpDefault is empty */ /* lpKeyName is empty, lpDefault is empty */
...@@ -608,8 +612,12 @@ static void test_GetPrivateProfileString(const char *content, const char *descri ...@@ -608,8 +612,12 @@ static void test_GetPrivateProfileString(const char *content, const char *descri
lstrcpyA(buf, "kumquat"); lstrcpyA(buf, "kumquat");
ret = GetPrivateProfileStringA("section1", "name1", "default", ret = GetPrivateProfileStringA("section1", "name1", "default",
buf, MAX_PATH, NULL); buf, MAX_PATH, NULL);
ok(ret == 7, "Expected 7, got %d\n", ret); ok(ret == 7 ||
ok(!lstrcmpA(buf, "default"), "Expected \"default\", got \"%s\"\n", buf); broken(ret == 0), /* Win9x, WinME */
"Expected 7, got %d\n", ret);
ok(!lstrcmpA(buf, "default") ||
broken(!lstrcmpA(buf, "kumquat")), /* Win9x, WinME */
"Expected \"default\", got \"%s\"\n", buf);
/* lpFileName is empty */ /* lpFileName is empty */
lstrcpyA(buf, "kumquat"); lstrcpyA(buf, "kumquat");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment