diff options
author | Bruno Haible <bruno@clisp.org> | 2022-09-05 00:31:33 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2022-09-05 00:31:33 +0200 |
commit | ae409ac2d04e118b7fa40da41fee569c301e133b (patch) | |
tree | 33c7fcc7517df4998ccbee51da37891c545f7e50 /tests | |
parent | 3e99f32e957ac7f1f5b3dd464486cb192fb6dad4 (diff) | |
download | gnulib-ae409ac2d04e118b7fa40da41fee569c301e133b.tar.gz |
unictype/category-none tests: Fix a link error on MSVC.
* tests/unictype/test-categ_none.c (main): Disable the test on MSVC.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unictype/test-categ_none.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/unictype/test-categ_none.c b/tests/unictype/test-categ_none.c index 4615fb162b..913011a5e4 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; } |