msi/tests: Loosen check on kernel32 language version.
This commit is contained in:
parent
4a22c88b37
commit
3840de5b1e
|
@ -2517,8 +2517,7 @@ static void test_MsiGetFileVersion(void)
|
||||||
r = MsiGetFileVersionA(path, version, &versz, lang, &langsz);
|
r = MsiGetFileVersionA(path, version, &versz, lang, &langsz);
|
||||||
ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r);
|
ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r);
|
||||||
ok(versz == verchecksz, "Expected %d, got %d\n", verchecksz, versz);
|
ok(versz == verchecksz, "Expected %d, got %d\n", verchecksz, versz);
|
||||||
ok(!lstrcmpA(lang, langcheck), "Expected %s, got %s\n", langcheck, lang);
|
ok(strstr(lang, langcheck) != NULL, "Expected %s in %s\n", langcheck, lang);
|
||||||
ok(langsz == langchecksz, "Expected %d, got %d\n", langchecksz, langsz);
|
|
||||||
ok(!lstrcmpA(version, vercheck),
|
ok(!lstrcmpA(version, vercheck),
|
||||||
"Expected %s, got %s\n", vercheck, version);
|
"Expected %s, got %s\n", vercheck, version);
|
||||||
|
|
||||||
|
@ -2536,8 +2535,7 @@ static void test_MsiGetFileVersion(void)
|
||||||
lstrcpyA(lang, "lang");
|
lstrcpyA(lang, "lang");
|
||||||
r = MsiGetFileVersionA(path, NULL, NULL, lang, &langsz);
|
r = MsiGetFileVersionA(path, NULL, NULL, lang, &langsz);
|
||||||
ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r);
|
ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r);
|
||||||
ok(!lstrcmpA(lang, langcheck), "Expected %s, got %s\n", langcheck, lang);
|
ok(strstr(lang, langcheck) != NULL, "Expected %s in %s\n", langcheck, lang);
|
||||||
ok(langsz == langchecksz, "Expected %d, got %d\n", langchecksz, langsz);
|
|
||||||
|
|
||||||
/* check neither version nor language */
|
/* check neither version nor language */
|
||||||
r = MsiGetFileVersionA(path, NULL, NULL, NULL, NULL);
|
r = MsiGetFileVersionA(path, NULL, NULL, NULL, NULL);
|
||||||
|
@ -2553,7 +2551,7 @@ static void test_MsiGetFileVersion(void)
|
||||||
langsz = MAX_PATH;
|
langsz = MAX_PATH;
|
||||||
r = MsiGetFileVersionA(path, NULL, NULL, NULL, &langsz);
|
r = MsiGetFileVersionA(path, NULL, NULL, NULL, &langsz);
|
||||||
ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r);
|
ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r);
|
||||||
ok(langsz == langchecksz, "Expected %d, got %d\n", langchecksz, langsz);
|
ok(langsz >= langchecksz, "Expected %d >= %d\n", langsz, langchecksz);
|
||||||
|
|
||||||
/* pcchVersionBuf not big enough */
|
/* pcchVersionBuf not big enough */
|
||||||
versz = 5;
|
versz = 5;
|
||||||
|
@ -2571,7 +2569,7 @@ static void test_MsiGetFileVersion(void)
|
||||||
ok(r == ERROR_MORE_DATA, "Expected ERROR_MORE_DATA, got %d\n", r);
|
ok(r == ERROR_MORE_DATA, "Expected ERROR_MORE_DATA, got %d\n", r);
|
||||||
ok(!strncmp(lang, langcheck, 2),
|
ok(!strncmp(lang, langcheck, 2),
|
||||||
"Expected first character of %s, got %s\n", langcheck, lang);
|
"Expected first character of %s, got %s\n", langcheck, lang);
|
||||||
ok(langsz == langchecksz, "Expected %d, got %d\n", langchecksz, langsz);
|
ok(langsz >= langchecksz, "Expected %d >= %d\n", langsz, langchecksz);
|
||||||
|
|
||||||
HeapFree(GetProcessHeap(), 0, vercheck);
|
HeapFree(GetProcessHeap(), 0, vercheck);
|
||||||
HeapFree(GetProcessHeap(), 0, langcheck);
|
HeapFree(GetProcessHeap(), 0, langcheck);
|
||||||
|
|
Loading…
Reference in New Issue