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: fix test for option '-T'



details:   https://anonhg.NetBSD.org/src/rev/2cf3375f8630
branches:  trunk
changeset: 1026648:2cf3375f8630
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Dec 04 07:23:43 2021 +0000

description:
tests/make: fix test for option '-T'

When run via ATF, the test makefile is not in the current directory.

diffstat:

 usr.bin/make/unit-tests/opt-tracefile.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (17 lines):

diff -r c5869b431ff9 -r 2cf3375f8630 usr.bin/make/unit-tests/opt-tracefile.mk
--- a/usr.bin/make/unit-tests/opt-tracefile.mk  Sat Dec 04 06:42:39 2021 +0000
+++ b/usr.bin/make/unit-tests/opt-tracefile.mk  Sat Dec 04 07:23:43 2021 +0000
@@ -1,11 +1,11 @@
-# $NetBSD: opt-tracefile.mk,v 1.3 2021/12/03 21:55:10 rillig Exp $
+# $NetBSD: opt-tracefile.mk,v 1.4 2021/12/04 07:23:43 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.
 
 all: .PHONY
        @rm -f opt-tracefile.log
-       @${MAKE} -f opt-tracefile.mk -j1 -Topt-tracefile.log trace
+       @${MAKE} -f ${MAKEFILE} -j1 -Topt-tracefile.log trace
        # Remove timestamps, process IDs and directory paths.
        @awk '{ print $$2, $$3 }' opt-tracefile.log
 



Home | Main Index | Thread Index | Old Index