]> Savannah Git Hosting - gnulib.git/commitdiff
c-stack tests: Remove left-over core dump file.
authorBruno Haible <bruno@clisp.org>
Mon, 14 Apr 2025 20:49:55 +0000 (22:49 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 14 Apr 2025 23:09:21 +0000 (01:09 +0200)
Suggested by Eric Blake in
<https://lists.gnu.org/archive/html/bug-gnulib/2025-04/msg00101.html>.

* tests/test-c-stack2.sh: Remove 'core' and 'test-c-stack.core' when
done.

ChangeLog
tests/test-c-stack2.sh

index 2003027edbf7534e24071d287635d2076167a899..dae928c43d7ace3d0ee3c72d678152ea1c8c4490 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2025-04-14  Bruno Haible  <bruno@clisp.org>
+
+       c-stack tests: Remove left-over core dump file.
+       Suggested by Eric Blake in
+       <https://lists.gnu.org/archive/html/bug-gnulib/2025-04/msg00101.html>.
+       * tests/test-c-stack2.sh: Remove 'core' and 'test-c-stack.core' when
+       done.
+
 2025-04-14  Bruno Haible  <bruno@clisp.org>
 
        regex: Fix undefined behaviour.
index b7f8b26bd94757a391511b74488ca0f1b3cdaf35..7d62de1bc956821db05d84206433aa9c33f57eeb 100755 (executable)
@@ -4,6 +4,10 @@ tmpfiles=""
 trap 'rm -fr $tmpfiles' HUP INT QUIT TERM
 
 tmpfiles="t-c-stack2.tmp"
+# Prepare to clean up a core dump file, assuming the most common naming
+# conventions for such files. (Core dump file names may be customized
+# through /proc/sys/kernel/core_pattern or 'coredumpctl'.)
+tmpfiles="$tmpfiles core test-c-stack.core"
 
 # Sanitize exit status within a subshell, since some shells fail to
 # redirect stderr on their message about death due to signal.