From: Bruno Haible Date: Thu, 30 Mar 2023 12:28:16 +0000 (+0200) Subject: string-desc tests: Fix "make distcheck" failure. X-Git-Tag: v1.0~1547 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=a9447b51ea6d87507b1e853023c7adc428267ece;p=gnulib.git string-desc tests: Fix "make distcheck" failure. * tests/test-string-desc.sh: Run the test in a subdir. --- diff --git a/ChangeLog b/ChangeLog index a406074a46..fd39860f9b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2023-03-30 Bruno Haible + + string-desc tests: Fix "make distcheck" failure. + * tests/test-string-desc.sh: Run the test in a subdir. + 2023-03-30 Bruno Haible snprintf: Avoid autoconf warning regarding gl_PRINTF_POSITIONS. diff --git a/tests/test-string-desc.sh b/tests/test-string-desc.sh index 1f52ccf19e..57f0e2371b 100755 --- a/tests/test-string-desc.sh +++ b/tests/test-string-desc.sh @@ -1,13 +1,12 @@ #!/bin/sh +. "${srcdir=.}/init.sh"; path_prepend_ . -./test-string-desc${EXEEXT} > test-string-desc-1.tmp 3> test-string-desc-3.tmp || exit 1 +${CHECKER} test-string-desc${EXEEXT} > test-string-desc-1.tmp 3> test-string-desc-3.tmp || Exit 1 printf 'Hello world!The\0quick\0brown\0\0fox\0' > test-string-desc.ok : "${DIFF=diff}" -${DIFF} test-string-desc.ok test-string-desc-1.tmp || { echo "string_desc_fwrite KO" 1>&2; exit 1; } -${DIFF} test-string-desc.ok test-string-desc-3.tmp || { echo "string_desc_write KO" 1>&2; exit 1; } +${DIFF} test-string-desc.ok test-string-desc-1.tmp || { echo "string_desc_fwrite KO" 1>&2; Exit 1; } +${DIFF} test-string-desc.ok test-string-desc-3.tmp || { echo "string_desc_write KO" 1>&2; Exit 1; } -rm -f test-string-desc-1.tmp test-string-desc-3.tmp - -exit 0 +Exit 0