Mercurial > hg > octave-nkf > gnulib-hg
changeset 13810:3ad36edfec7f
tests: Make them compile with TinyCC.
* tests/test-strstr.c (main): Remove parentheses around array
initializer.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 16 Oct 2010 03:04:19 +0200 |
parents | 58a74b3c55fe |
children | 5ae88074a203 |
files | ChangeLog tests/test-strstr.c |
diffstat | 2 files changed, 13 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-10-15 Bruno Haible <bruno@clisp.org> + + tests: Make them compile with TinyCC. + * tests/test-strstr.c (main): Remove parentheses around array + initializer. + 2010-10-15 Eric Blake <eblake@redhat.com> ignore-value: make header idempotent
--- a/tests/test-strstr.c +++ b/tests/test-strstr.c @@ -93,18 +93,18 @@ /* Check that a long periodic needle does not cause false positives. */ { - const char input[] = ("F_BD_CE_BD_EF_BF_BD_EF_BF_BD_EF_BF_BD_EF_BF_BD" - "_C3_88_20_EF_BF_BD_EF_BF_BD_EF_BF_BD" - "_C3_A7_20_EF_BF_BD"); + const char input[] = "F_BD_CE_BD_EF_BF_BD_EF_BF_BD_EF_BF_BD_EF_BF_BD" + "_C3_88_20_EF_BF_BD_EF_BF_BD_EF_BF_BD" + "_C3_A7_20_EF_BF_BD"; const char need[] = "_EF_BF_BD_EF_BF_BD_EF_BF_BD_EF_BF_BD_EF_BF_BD"; const char *result = strstr (input, need); ASSERT (result == NULL); } { - const char input[] = ("F_BD_CE_BD_EF_BF_BD_EF_BF_BD_EF_BF_BD_EF_BF_BD" - "_C3_88_20_EF_BF_BD_EF_BF_BD_EF_BF_BD" - "_C3_A7_20_EF_BF_BD_DA_B5_C2_A6_20" - "_EF_BF_BD_EF_BF_BD_EF_BF_BD_EF_BF_BD_EF_BF_BD"); + const char input[] = "F_BD_CE_BD_EF_BF_BD_EF_BF_BD_EF_BF_BD_EF_BF_BD" + "_C3_88_20_EF_BF_BD_EF_BF_BD_EF_BF_BD" + "_C3_A7_20_EF_BF_BD_DA_B5_C2_A6_20" + "_EF_BF_BD_EF_BF_BD_EF_BF_BD_EF_BF_BD_EF_BF_BD"; const char need[] = "_EF_BF_BD_EF_BF_BD_EF_BF_BD_EF_BF_BD_EF_BF_BD"; const char *result = strstr (input, need); ASSERT (result == input + 115);