]> Savannah Git Hosting - gnulib.git/commitdiff
string-desc tests: Fix "make distcheck" failure.
authorBruno Haible <bruno@clisp.org>
Thu, 30 Mar 2023 12:28:16 +0000 (14:28 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 30 Mar 2023 12:28:55 +0000 (14:28 +0200)
* tests/test-string-desc.sh: Run the test in a subdir.

ChangeLog
tests/test-string-desc.sh

index a406074a46e21300ebb3331dcbc848fd88d8ed3e..fd39860f9b52b638b7f2d0fe7c1d947d8fd194cb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-03-30  Bruno Haible  <bruno@clisp.org>
+
+       string-desc tests: Fix "make distcheck" failure.
+       * tests/test-string-desc.sh: Run the test in a subdir.
+
 2023-03-30  Bruno Haible  <bruno@clisp.org>
 
        snprintf: Avoid autoconf warning regarding gl_PRINTF_POSITIONS.
index 1f52ccf19eee2691b7e43b145773a599c0981877..57f0e2371ba33dd7066a0b65ef474f00996c71b7 100755 (executable)
@@ -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