Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make/unit-tests tests/make: clean up after test 'opt...



details:   https://anonhg.NetBSD.org/src/rev/2ddee25b7834
branches:  trunk
changeset: 1029227:2ddee25b7834
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue Dec 28 01:04:03 2021 +0000

description:
tests/make: clean up after test 'opt-debug-file'

diffstat:

 usr.bin/make/unit-tests/Makefile          |  3 ++-
 usr.bin/make/unit-tests/opt-debug-file.mk |  9 ++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (40 lines):

diff -r c98322bccae4 -r 2ddee25b7834 usr.bin/make/unit-tests/Makefile
--- a/usr.bin/make/unit-tests/Makefile  Tue Dec 28 00:56:16 2021 +0000
+++ b/usr.bin/make/unit-tests/Makefile  Tue Dec 28 01:04:03 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.292 2021/12/28 00:56:17 rillig Exp $
+# $NetBSD: Makefile,v 1.293 2021/12/28 01:04:03 rillig Exp $
 #
 # Unit tests for make(1)
 #
@@ -626,6 +626,7 @@
 CLEANFILES=            *.rawout *.out *.status *.tmp *.core *.tmp
 CLEANFILES+=           obj*.[och] lib*.a       # posix1.mk
 CLEANFILES+=           issue* .[ab]*           # suffixes.mk
+CLEANFILES+=           opt-debug-file.debuglog # test exits before cleaning
 CLEANDIRS=             dir dummy               # posix1.mk
 
 clean:
diff -r c98322bccae4 -r 2ddee25b7834 usr.bin/make/unit-tests/opt-debug-file.mk
--- a/usr.bin/make/unit-tests/opt-debug-file.mk Tue Dec 28 00:56:16 2021 +0000
+++ b/usr.bin/make/unit-tests/opt-debug-file.mk Tue Dec 28 01:04:03 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: opt-debug-file.mk,v 1.5 2021/12/27 22:04:20 rillig Exp $
+# $NetBSD: opt-debug-file.mk,v 1.6 2021/12/28 01:04:04 rillig Exp $
 #
 # Tests for the -dF command line option, which redirects the debug log
 # to a file instead of writing it to stderr.
@@ -32,10 +32,9 @@
 .endif
 
 
-# If the debug log file cannot be opened, make prints an error message.
+# If the debug log file cannot be opened, make prints an error message and
+# exits immediately since the debug log file is usually selected from the
+# command line.
 .MAKEFLAGS: -dFopt-debug-file.debuglog/file
 
-# Clean up
-_!=    rm opt-debug-file.debuglog
-
 all:



Home | Main Index | Thread Index | Old Index