aboutsummaryrefslogtreecommitdiff
path: root/contrib/bmake/unit-tests/opt-tracefile.mk
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/bmake/unit-tests/opt-tracefile.mk')
-rw-r--r--contrib/bmake/unit-tests/opt-tracefile.mk5
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/bmake/unit-tests/opt-tracefile.mk b/contrib/bmake/unit-tests/opt-tracefile.mk
index 291824680606..d94c8045c224 100644
--- a/contrib/bmake/unit-tests/opt-tracefile.mk
+++ b/contrib/bmake/unit-tests/opt-tracefile.mk
@@ -1,4 +1,4 @@
-# $NetBSD: opt-tracefile.mk,v 1.5 2021/12/06 22:35:20 rillig Exp $
+# $NetBSD: opt-tracefile.mk,v 1.6 2025/05/09 18:38:40 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.
@@ -6,8 +6,7 @@
all: .PHONY
@rm -f opt-tracefile.log
@${MAKE} -f ${MAKEFILE} -j1 -Topt-tracefile.log trace
- # Remove timestamps, process IDs and directory paths.
- @awk '{ print $$2, $$3 }' opt-tracefile.log
+ @awk '{ $$1 = "<timestamp>"; $$4 = "<make-pid>"; if (NF >= 7) $$7 = "<job-pid>"; print }' opt-tracefile.log
@rm opt-tracefile.log
trace dependency1 dependency2: .PHONY