]> 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:02:40 +0000 (04:02 +0200)
* tests/unictype/test-categ_none.c (main): Disable the test on MSVC.

ChangeLog
tests/unictype/test-categ_none.c

index 9b9eafdce9ba8ee0efd383df7111517fc7488c44..eaca7c41bdc347bd72a13f00d149a5b63ae9f40a 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 4615fb162b7ebeb19a305940a6a86d5458c52f63..913011a5e49d15c957472573a6429e16d3088c6f 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;
 }