Execute the main loop twice, as intended.
authorBruno Haible <bruno@clisp.org>
Sun, 21 Dec 2008 12:29:51 +0000 (13:29 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 21 Dec 2008 12:29:51 +0000 (13:29 +0100)
ChangeLog
tests/test-mbsrtowcs.c

index 004e314..d8b1e52 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2008-12-21  Bruno Haible  <bruno@clisp.org>
 
+       * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
+
+2008-12-21  Bruno Haible  <bruno@clisp.org>
+
        Update doc for AIX.
        * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
        16-bit wchar_t type.
index 639ff57..81e67c1 100644 (file)
@@ -141,7 +141,7 @@ main (int argc, char *argv[])
                  ASSERT (buf[1] == (wchar_t) 0xBADFACE);
                ASSERT (mbsinit (&state));
              }
-             return 0;
+             break;
 
            case '2':
              /* Locale encoding is UTF-8.  */
@@ -187,7 +187,7 @@ main (int argc, char *argv[])
                  ASSERT (buf[2] == (wchar_t) 0xBADFACE);
                ASSERT (mbsinit (&state));
              }
-             return 0;
+             break;
 
            case '3':
              /* Locale encoding is EUC-JP.  */
@@ -240,7 +240,7 @@ main (int argc, char *argv[])
                  ASSERT (buf[2] == (wchar_t) 0xBADFACE);
                ASSERT (mbsinit (&state));
              }
-             return 0;
+             break;
 
            case '4':
              /* Locale encoding is GB18030.  */
@@ -286,7 +286,7 @@ main (int argc, char *argv[])
                  ASSERT (buf[2] == (wchar_t) 0xBADFACE);
                ASSERT (mbsinit (&state));
              }
-             return 0;
+             break;
 
            default:
              return 1;