NT 4.0 doesn't support MAP_EXPAND_LIGATURES so skip test if it returns

ERROR_INVALID_FLAGS.
This commit is contained in:
Robert Reif 2004-05-30 03:11:24 +00:00 committed by Alexandre Julliard
parent 08183bdbfd
commit 4751ff2b44
1 changed files with 33 additions and 27 deletions

View File

@ -1468,6 +1468,8 @@ static void test_FoldStringA(void)
/* MAP_EXPAND_LIGATURES */
SetLastError(0);
ret = pFoldStringA(MAP_EXPAND_LIGATURES, ligatures_src, -1, dst, 256);
/* NT 4.0 doesnt support MAP_EXPAND_LIGATURES */
if (ret != ERROR_INVALID_FLAGS) {
EXPECT_LEN(sizeof(ligatures_dst)); EXPECT_VALID;
ok(strcmp(dst, ligatures_dst) == 0,
"MAP_EXPAND_LIGATURES: Expected '%s', got '%s'\n", ligatures_dst, dst);
@ -1484,6 +1486,7 @@ static void test_FoldStringA(void)
"MAP_EXPAND_LIGATURES: Expected '%s', got '%s'\n", src, dst);
}
}
}
/* MAP_COMPOSITE */
SetLastError(0);
@ -1852,6 +1855,8 @@ static void test_FoldStringW(void)
/* MAP_EXPAND_LIGATURES */
SetLastError(0);
ret = pFoldStringW(MAP_EXPAND_LIGATURES, ligatures_src, -1, dst, 256);
/* NT 4.0 doesnt support MAP_EXPAND_LIGATURES */
if (ret != ERROR_INVALID_FLAGS) {
EXPECT_LEN(sizeof(ligatures_dst)/sizeof(ligatures_dst[0])); EXPECT_VALID;
ok(!memcmp(dst, ligatures_dst, sizeof(ligatures_dst)),
"MAP_EXPAND_LIGATURES: Expanded incorrectly\n");
@ -1869,6 +1874,7 @@ static void test_FoldStringW(void)
i, src[0], dst[0]);
}
}
}
/* FIXME: MAP_PRECOMPOSED : MAP_COMPOSITE */
}