]> Savannah Git Hosting - gnulib.git/commitdiff
unictype/category-none tests: Fix a link error on MSVC.
authorBruno Haible <bruno@clisp.org>
Sun, 4 Sep 2022 22:31:33 +0000 (00:31 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 5 Sep 2022 02:00:21 +0000 (04:00 +0200)
* tests/unictype/test-categ_none.c (main): Disable the test on MSVC.

ChangeLog
tests/unictype/test-categ_none.c

index 3142b87761b2f3115fe3a1b02127b847fbcf8b68..cf6006cb514d317cb224701297c0414061554741 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2022-09-04  Bruno Haible  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
 
        oset-c++: Fix compilation error with MSVC 14.
index 436015ac622f45c3d1b4b4f8b6801393c8959af5..e95feb670f4a2a73410878e22c85e7d3b7554c3f 100644 (file)
 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;
 }