summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2023-03-30 14:28:16 +0200
committerBruno Haible <bruno@clisp.org>2023-03-30 14:28:55 +0200
commita9447b51ea6d87507b1e853023c7adc428267ece (patch)
treed8ccd7d247e048c5aba808b572a6ac61ee8d8eb4 /tests
parentc091927f0efdb8fb13c99add1b2c3d3db3c79605 (diff)
downloadgnulib-a9447b51ea6d87507b1e853023c7adc428267ece.tar.gz
string-desc tests: Fix "make distcheck" failure.
* tests/test-string-desc.sh: Run the test in a subdir.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test-string-desc.sh11
1 files changed, 5 insertions, 6 deletions
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