]> Savannah Git Hosting - gnulib.git/commitdiff
unilbrk tests: Fix compilation failures (regression 2023-02-11).
authorBruno Haible <bruno@clisp.org>
Sat, 18 Feb 2023 11:08:33 +0000 (12:08 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 18 Feb 2023 11:08:33 +0000 (12:08 +0100)
* tests/unilbrk/test-u8-possible-linebreaks.c (main): Outside of
libunistring, don't test the backward compatibility function.
* tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
* tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
* tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
* tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
* tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
* tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
* tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.

ChangeLog
tests/unilbrk/test-u16-possible-linebreaks.c
tests/unilbrk/test-u16-width-linebreaks.c
tests/unilbrk/test-u32-possible-linebreaks.c
tests/unilbrk/test-u32-width-linebreaks.c
tests/unilbrk/test-u8-possible-linebreaks.c
tests/unilbrk/test-u8-width-linebreaks.c
tests/unilbrk/test-ulc-possible-linebreaks.c
tests/unilbrk/test-ulc-width-linebreaks.c

index 8352cda04a760e861d4e3df8cdc22167707f593e..269871c4c6fe66ccfe0a7b2ca928dfd833d83b80 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2023-02-18  Bruno Haible  <bruno@clisp.org>
+
+       unilbrk tests: Fix compilation failures (regression 2023-02-11).
+       * tests/unilbrk/test-u8-possible-linebreaks.c (main): Outside of
+       libunistring, don't test the backward compatibility function.
+       * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
+       * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
+       * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
+       * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
+       * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
+       * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
+       * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
+
 2023-02-17  Bruno Haible  <bruno@clisp.org>
 
        Improve cross-compilation for midipix.
index 63207b58056f6159891ca89933e9495b35e3a442..5d72227350862750b8ab2ee4d620772ca28ea82c 100644 (file)
@@ -255,8 +255,10 @@ int
 main ()
 {
   test_function (u16_possible_linebreaks, 2);
-#undef u16_possible_linebreaks
+#ifdef IN_LIBUNISTRING_GNULIB_TESTS
+# undef u16_possible_linebreaks
   test_function (u16_possible_linebreaks, 1);
+#endif
 
   return 0;
 }
index 3a38419baeb94ab2cd1a30c37f72997b2fc24119..e59e4744b441dbdc66c2ba042becab6122267b75 100644 (file)
@@ -76,8 +76,10 @@ int
 main ()
 {
   test_function (u16_width_linebreaks, 2);
-#undef u16_width_linebreaks
+#ifdef IN_LIBUNISTRING_GNULIB_TESTS
+# undef u16_width_linebreaks
   test_function (u16_width_linebreaks, 1);
+#endif
 
   return 0;
 }
index bb99ec5752d2431f8342f392cf73f65a9472d9f7..203fed0c895420f1220ad242fbae4228f8c7277c 100644 (file)
@@ -255,8 +255,10 @@ int
 main ()
 {
   test_function (u32_possible_linebreaks, 2);
-#undef u32_possible_linebreaks
+#ifdef IN_LIBUNISTRING_GNULIB_TESTS
+# undef u32_possible_linebreaks
   test_function (u32_possible_linebreaks, 1);
+#endif
 
   return 0;
 }
index 79b7222ad7cbf6c1f8b955fbbe21fffe2502fb6d..b64989e895c4ca8f63ca9efe3a096defd9647742 100644 (file)
@@ -76,8 +76,10 @@ int
 main ()
 {
   test_function (u32_width_linebreaks, 2);
-#undef u32_width_linebreaks
+#ifdef IN_LIBUNISTRING_GNULIB_TESTS
+# undef u32_width_linebreaks
   test_function (u32_width_linebreaks, 1);
+#endif
 
   return 0;
 }
index ac0abadc4a322f5f4c5072684a8d3b6b31cbc6fc..a5b533a31acf971df1cd32396ae564c4ddc425ea 100644 (file)
@@ -238,8 +238,10 @@ int
 main ()
 {
   test_function (u8_possible_linebreaks, 2);
-#undef u8_possible_linebreaks
+#ifdef IN_LIBUNISTRING_GNULIB_TESTS
+# undef u8_possible_linebreaks
   test_function (u8_possible_linebreaks, 1);
+#endif
 
   return 0;
 }
index d1d8ae9139c2b2b4698069c74d884248c8e9270e..967d238d8d13ba451c8d8daa0781a2ae04164fc4 100644 (file)
@@ -70,8 +70,10 @@ int
 main ()
 {
   test_function (u8_width_linebreaks, 2);
-#undef u8_width_linebreaks
+#ifdef IN_LIBUNISTRING_GNULIB_TESTS
+# undef u8_width_linebreaks
   test_function (u8_width_linebreaks, 1);
+#endif
 
   return 0;
 }
index 9cd8b0d727435dca97d0a7e6baa81b055e2e7b7e..1d80af10eeb1644ce9d62c716fc314e6b26e3e24 100644 (file)
@@ -71,8 +71,10 @@ int
 main ()
 {
   test_function (ulc_possible_linebreaks, 2);
-#undef ulc_possible_linebreaks
+#ifdef IN_LIBUNISTRING_GNULIB_TESTS
+# undef ulc_possible_linebreaks
   test_function (ulc_possible_linebreaks, 1);
+#endif
 
   return 0;
 }
index e9c4fa23dfad656f5fdeddfa86ad9fd053a91c39..415a96fd44f4542c5cda241f43487168cdb90be7 100644 (file)
@@ -55,8 +55,10 @@ int
 main ()
 {
   test_function (ulc_width_linebreaks, 2);
-#undef ulc_width_linebreaks
+#ifdef IN_LIBUNISTRING_GNULIB_TESTS
+# undef ulc_width_linebreaks
   test_function (ulc_width_linebreaks, 1);
+#endif
 
   return 0;
 }