The test was a little too strict.
authorBruno Haible <bruno@clisp.org>
Sun, 20 Apr 2008 17:57:36 +0000 (19:57 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 20 Apr 2008 17:57:36 +0000 (19:57 +0200)
ChangeLog
tests/uniconv/test-u16-conv-to-enc.c
tests/uniconv/test-u8-conv-to-enc.c

index a9c4fcb71328164d629f3cfcda950d231b844b7d..188e63c7dc86d7b2f77908bd336493b8c1e9a662 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-04-20  Bruno Haible  <bruno@clisp.org>
+
+       * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
+       when the resulting length is 0.
+       * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
+
 2008-04-20  Bruno Haible  <bruno@clisp.org>
 
        * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
index 57721267d8b4fb02b71a1bb2175816e88b43f07b..26be776a2c337f807d3495bca08531570d3f8281 100644 (file)
@@ -178,7 +178,7 @@ main ()
                                             &result, &length);
          ASSERT (retval == 0);
          ASSERT (length == strlen (""));
-         ASSERT (result != NULL);
+         /* result may be == NULL or != NULL.  */
          if (o)
            {
              ASSERT (offsets[0] == 0);
index 11da46e744299ab7c3f10af247b7ebbc09ad8e78..f30b1c5f2c87bf079dd9de8de7369f9cb86f6701 100644 (file)
@@ -183,7 +183,7 @@ main ()
                                            &result, &length);
          ASSERT (retval == 0);
          ASSERT (length == strlen (""));
-         ASSERT (result != NULL);
+         /* result may be == NULL or != NULL.  */
          if (o)
            {
              ASSERT (offsets[0] == 0);