Module Name: src
Committed By: rillig
Date: Sat May 25 21:11:30 UTC 2024
Modified Files:
src/usr.bin/make/unit-tests: dep-duplicate.exp dep-duplicate.mk
Log Message:
tests/make: rename temporary file
The filename extension '.inc' is reserved for files that are checked
into version control.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/make/unit-tests/dep-duplicate.exp \
src/usr.bin/make/unit-tests/dep-duplicate.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/dep-duplicate.exp
diff -u src/usr.bin/make/unit-tests/dep-duplicate.exp:1.3 src/usr.bin/make/unit-tests/dep-duplicate.exp:1.4
--- src/usr.bin/make/unit-tests/dep-duplicate.exp:1.3 Thu Jan 20 19:24:53 2022
+++ src/usr.bin/make/unit-tests/dep-duplicate.exp Sat May 25 21:11:30 2024
@@ -1,4 +1,4 @@
-make: "dep-duplicate.inc" line 1: warning: duplicate script for target "all" ignored
+make: "dep-duplicate.tmp" line 1: warning: duplicate script for target "all" ignored
make: "dep-duplicate.main" line 3: warning: using previous script for "all" defined here
main-output
exit status 0
Index: src/usr.bin/make/unit-tests/dep-duplicate.mk
diff -u src/usr.bin/make/unit-tests/dep-duplicate.mk:1.3 src/usr.bin/make/unit-tests/dep-duplicate.mk:1.4
--- src/usr.bin/make/unit-tests/dep-duplicate.mk:1.3 Thu Jan 20 19:24:53 2022
+++ src/usr.bin/make/unit-tests/dep-duplicate.mk Sat May 25 21:11:30 2024
@@ -1,4 +1,4 @@
-# $NetBSD: dep-duplicate.mk,v 1.3 2022/01/20 19:24:53 rillig Exp $
+# $NetBSD: dep-duplicate.mk,v 1.4 2024/05/25 21:11:30 rillig Exp $
#
# Test for a target whose commands are defined twice. This generates a
# warning, not an error, so ensure that the correct commands are kept.
@@ -13,9 +13,9 @@ all: .PHONY
echo '# empty line 1'; \
echo '# empty line 2'; \
echo 'all:; @echo main-output'; \
- echo '.include "dep-duplicate.inc"'
+ echo '.include "dep-duplicate.tmp"'
- @exec > dep-duplicate.inc; \
+ @exec > dep-duplicate.tmp; \
echo 'all:; @echo inc-output'
# The main file must be specified using a relative path, just like the
@@ -24,4 +24,4 @@ all: .PHONY
@${MAKE} -r -f dep-duplicate.main
@rm -f dep-duplicate.main
- @rm -f dep-duplicate.inc
+ @rm -f dep-duplicate.tmp