From 1e209b30b4cbde8aa17a62639e62d4f36f61776b Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 30 Jul 2023 00:56:31 +0200 Subject: [PATCH] wcsrtombs tests: Renumber tests. * tests/test-wcsrtombs*.sh: Renamed 1 -> 2 -> 3 -> 4 -> 5. * tests/test-wcsrtombs.c: Update. * modules/wcsrtombs-tests: Update. --- ChangeLog | 5 +++++ modules/wcsrtombs-tests | 12 +++++++----- tests/{test-wcsrtombs1.sh => test-wcsrtombs-2.sh} | 2 +- tests/{test-wcsrtombs2.sh => test-wcsrtombs-3.sh} | 2 +- tests/{test-wcsrtombs3.sh => test-wcsrtombs-4.sh} | 2 +- tests/{test-wcsrtombs4.sh => test-wcsrtombs-5.sh} | 2 +- tests/test-wcsrtombs.c | 8 ++++---- 7 files changed, 20 insertions(+), 13 deletions(-) rename tests/{test-wcsrtombs1.sh => test-wcsrtombs-2.sh} (89%) rename tests/{test-wcsrtombs2.sh => test-wcsrtombs-3.sh} (90%) rename tests/{test-wcsrtombs3.sh => test-wcsrtombs-4.sh} (89%) rename tests/{test-wcsrtombs4.sh => test-wcsrtombs-5.sh} (90%) diff --git a/ChangeLog b/ChangeLog index 20c46a6d18..53e22f3c98 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2023-07-29 Bruno Haible + wcsrtombs tests: Renumber tests. + * tests/test-wcsrtombs*.sh: Renamed 1 -> 2 -> 3 -> 4 -> 5. + * tests/test-wcsrtombs.c: Update. + * modules/wcsrtombs-tests: Update. + wcsnrtombs tests: Renumber tests. * tests/test-wcsnrtombs*.sh: Renamed 1 -> 2 -> 3 -> 4 -> 5. * tests/test-wcsnrtombs.c: Update. diff --git a/modules/wcsrtombs-tests b/modules/wcsrtombs-tests index 09b12d7ef3..b042a52973 100644 --- a/modules/wcsrtombs-tests +++ b/modules/wcsrtombs-tests @@ -1,8 +1,8 @@ Files: -tests/test-wcsrtombs1.sh -tests/test-wcsrtombs2.sh -tests/test-wcsrtombs3.sh -tests/test-wcsrtombs4.sh +tests/test-wcsrtombs-2.sh +tests/test-wcsrtombs-3.sh +tests/test-wcsrtombs-4.sh +tests/test-wcsrtombs-5.sh tests/test-wcsrtombs.c tests/signature.h tests/macros.h @@ -21,7 +21,9 @@ gt_LOCALE_JA gt_LOCALE_ZH_CN Makefile.am: -TESTS += test-wcsrtombs1.sh test-wcsrtombs2.sh test-wcsrtombs3.sh test-wcsrtombs4.sh +TESTS += \ + test-wcsrtombs-2.sh test-wcsrtombs-3.sh test-wcsrtombs-4.sh \ + test-wcsrtombs-5.sh TESTS_ENVIRONMENT += \ LOCALE_FR='@LOCALE_FR@' \ LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \ diff --git a/tests/test-wcsrtombs1.sh b/tests/test-wcsrtombs-2.sh similarity index 89% rename from tests/test-wcsrtombs1.sh rename to tests/test-wcsrtombs-2.sh index 47ce3235bb..7a16db5e2a 100755 --- a/tests/test-wcsrtombs1.sh +++ b/tests/test-wcsrtombs-2.sh @@ -12,4 +12,4 @@ if test $LOCALE_FR = none; then fi LC_ALL=$LOCALE_FR \ -${CHECKER} ./test-wcsrtombs${EXEEXT} 1 +${CHECKER} ./test-wcsrtombs${EXEEXT} 2 diff --git a/tests/test-wcsrtombs2.sh b/tests/test-wcsrtombs-3.sh similarity index 90% rename from tests/test-wcsrtombs2.sh rename to tests/test-wcsrtombs-3.sh index e347c8903d..477a6b7be6 100755 --- a/tests/test-wcsrtombs2.sh +++ b/tests/test-wcsrtombs-3.sh @@ -12,4 +12,4 @@ if test $LOCALE_FR_UTF8 = none; then fi LC_ALL=$LOCALE_FR_UTF8 \ -${CHECKER} ./test-wcsrtombs${EXEEXT} 2 +${CHECKER} ./test-wcsrtombs${EXEEXT} 3 diff --git a/tests/test-wcsrtombs3.sh b/tests/test-wcsrtombs-4.sh similarity index 89% rename from tests/test-wcsrtombs3.sh rename to tests/test-wcsrtombs-4.sh index 217be4b4db..7382fb535e 100755 --- a/tests/test-wcsrtombs3.sh +++ b/tests/test-wcsrtombs-4.sh @@ -12,4 +12,4 @@ if test $LOCALE_JA = none; then fi LC_ALL=$LOCALE_JA \ -${CHECKER} ./test-wcsrtombs${EXEEXT} 3 +${CHECKER} ./test-wcsrtombs${EXEEXT} 4 diff --git a/tests/test-wcsrtombs4.sh b/tests/test-wcsrtombs-5.sh similarity index 90% rename from tests/test-wcsrtombs4.sh rename to tests/test-wcsrtombs-5.sh index d8e0edeef9..572a51d8b4 100755 --- a/tests/test-wcsrtombs4.sh +++ b/tests/test-wcsrtombs-5.sh @@ -12,4 +12,4 @@ if test $LOCALE_ZH_CN = none; then fi LC_ALL=$LOCALE_ZH_CN \ -${CHECKER} ./test-wcsrtombs${EXEEXT} 4 +${CHECKER} ./test-wcsrtombs${EXEEXT} 5 diff --git a/tests/test-wcsrtombs.c b/tests/test-wcsrtombs.c index e75dfa6cc7..4b9d568470 100644 --- a/tests/test-wcsrtombs.c +++ b/tests/test-wcsrtombs.c @@ -54,7 +54,7 @@ main (int argc, char *argv[]) switch (argv[1][0]) { - case '1': + case '2': /* Locale encoding is ISO-8859-1 or ISO-8859-15. */ { const char original[] = "B\374\337er"; /* "Büßer" */ @@ -83,7 +83,7 @@ main (int argc, char *argv[]) } break; - case '2': + case '3': /* Locale encoding is UTF-8. */ { const char original[] = "B\303\274\303\237er"; /* "Büßer" */ @@ -118,7 +118,7 @@ main (int argc, char *argv[]) } break; - case '3': + case '4': /* Locale encoding is EUC-JP. */ { const char original[] = "<\306\374\313\334\270\354>"; /* "<日本語>" */ @@ -156,7 +156,7 @@ main (int argc, char *argv[]) break; - case '4': + case '5': /* Locale encoding is GB18030. */ { const char original[] = "B\250\271\201\060\211\070er"; /* "Büßer" */ -- 2.39.5