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 a9c4fcb..188e63c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 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
        works.
        * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
index 5772126..26be776 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 11da46e..f30b1c5 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);