From 4c4e77befb8151efb0ad83d17320328b3b3a0874 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 5 Sep 2022 00:31:33 +0200 Subject: unictype/category-none tests: Fix a link error on MSVC. * tests/unictype/test-categ_none.c (main): Disable the test on MSVC. --- ChangeLog | 5 +++++ tests/unictype/test-categ_none.c | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index 3142b87761..cf6006cb51 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2022-09-04 Bruno Haible + + unictype/category-none tests: Fix a link error on MSVC. + * tests/unictype/test-categ_none.c (main): Disable the test on MSVC. + 2022-09-04 Bruno Haible oset-c++: Fix compilation error with MSVC 14. diff --git a/tests/unictype/test-categ_none.c b/tests/unictype/test-categ_none.c index 436015ac62..e95feb670f 100644 --- a/tests/unictype/test-categ_none.c +++ b/tests/unictype/test-categ_none.c @@ -25,11 +25,18 @@ int main () { + /* This test cannot be compiled on platforms on which _UC_CATEGORY_NONE + is not exported from the libunistring shared library. For now, + MSVC is the only platform where this is a problem. */ +#if !defined _MSC_VER + uc_general_category_t ct = _UC_CATEGORY_NONE; unsigned int c; for (c = 0; c < 0x110000; c++) ASSERT (!uc_is_general_category (c, ct)); +#endif + return 0; } -- cgit v1.2.1