Module Name: src
Committed By: rillig
Date: Mon Dec 6 22:35:20 UTC 2021
Modified Files:
src/usr.bin/make/unit-tests: opt-tracefile.mk
Log Message:
tests/make: clean up after testing the option '-T'
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/usr.bin/make/unit-tests/opt-tracefile.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/make/unit-tests/opt-tracefile.mk
diff -u src/usr.bin/make/unit-tests/opt-tracefile.mk:1.4 src/usr.bin/make/unit-tests/opt-tracefile.mk:1.5
--- src/usr.bin/make/unit-tests/opt-tracefile.mk:1.4 Sat Dec 4 07:23:43 2021
+++ src/usr.bin/make/unit-tests/opt-tracefile.mk Mon Dec 6 22:35:20 2021
@@ -1,4 +1,4 @@
-# $NetBSD: opt-tracefile.mk,v 1.4 2021/12/04 07:23:43 rillig Exp $
+# $NetBSD: opt-tracefile.mk,v 1.5 2021/12/06 22:35:20 rillig Exp $
#
# Tests for the command line option '-T', which in jobs mode appends a trace
# record to a trace log whenever a job is started or completed.
@@ -8,6 +8,7 @@ all: .PHONY
@${MAKE} -f ${MAKEFILE} -j1 -Topt-tracefile.log trace
# Remove timestamps, process IDs and directory paths.
@awk '{ print $$2, $$3 }' opt-tracefile.log
+ @rm opt-tracefile.log
trace dependency1 dependency2: .PHONY
@echo 'Making ${.TARGET} from ${.ALLSRC:S,^$,<nothing>,W}.'