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 make(1): add debug logging for suffi...
details: https://anonhg.NetBSD.org/src/rev/a9943b03c535
branches: trunk
changeset: 978511:a9943b03c535
user: rillig <rillig%NetBSD.org@localhost>
date: Mon Nov 23 14:13:39 2020 +0000
description:
make(1): add debug logging for suffix tests
diffstat:
usr.bin/make/unit-tests/suff-transform-endless.exp | 21 +++++++++++++++++-
usr.bin/make/unit-tests/suff-transform-endless.mk | 4 ++-
usr.bin/make/unit-tests/suff-transform-select.exp | 25 +++++++++++++++++++++-
usr.bin/make/unit-tests/suff-transform-select.mk | 4 ++-
4 files changed, 50 insertions(+), 4 deletions(-)
diffs (96 lines):
diff -r 22bc6d44997a -r a9943b03c535 usr.bin/make/unit-tests/suff-transform-endless.exp
--- a/usr.bin/make/unit-tests/suff-transform-endless.exp Mon Nov 23 14:04:28 2020 +0000
+++ b/usr.bin/make/unit-tests/suff-transform-endless.exp Mon Nov 23 14:13:39 2020 +0000
@@ -1,4 +1,23 @@
-make: "suff-transform-endless.mk" line 36: prevent endless loop
+Adding suffix ".c"
+Adding suffix ".d"
+defining transformation from `.c' to `.d'
+inserting ".c" (1) at end of list
+inserting ".d" (2) at end of list
+Adding suffix ".e"
+defining transformation from `.d' to `.e'
+inserting ".d" (2) at end of list
+inserting ".e" (3) at end of list
+Adding suffix ".f"
+defining transformation from `.e' to `'
+inserting ".e" (3) at end of list
+inserting "" (0) at end of list
+defining transformation from `.e' to `.f'
+inserting ".e" (3) at end of list
+inserting ".f" (4) at end of list
+defining transformation from `.f' to `.e'
+inserting ".f" (4) at end of list
+inserting ".e" (3) at end of list
+make: "suff-transform-endless.mk" line 38: prevent endless loop
make: stopped in unit-tests
exit status 1
diff -r 22bc6d44997a -r a9943b03c535 usr.bin/make/unit-tests/suff-transform-endless.mk
--- a/usr.bin/make/unit-tests/suff-transform-endless.mk Mon Nov 23 14:04:28 2020 +0000
+++ b/usr.bin/make/unit-tests/suff-transform-endless.mk Mon Nov 23 14:13:39 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: suff-transform-endless.mk,v 1.2 2020/11/22 21:37:09 rillig Exp $
+# $NetBSD: suff-transform-endless.mk,v 1.3 2020/11/23 14:13:39 rillig Exp $
# https://gnats.netbsd.org/49086, issue 6:
# Transformation search can end up in an infinite loop.
@@ -8,6 +8,8 @@
# exist, make would try to make .f from .e and then infinitely try
# to do .e from .d and vice versa.
+.MAKEFLAGS: -ds
+
all: issue6.f
.c.d .d.c .d .d.e .e.d:
diff -r 22bc6d44997a -r a9943b03c535 usr.bin/make/unit-tests/suff-transform-select.exp
--- a/usr.bin/make/unit-tests/suff-transform-select.exp Mon Nov 23 14:04:28 2020 +0000
+++ b/usr.bin/make/unit-tests/suff-transform-select.exp Mon Nov 23 14:13:39 2020 +0000
@@ -1,4 +1,27 @@
-make: "suff-transform-select.mk" line 28: prevent endless loop
+Adding suffix ".c"
+Adding suffix ".d"
+defining transformation from `.c' to `.d'
+inserting ".c" (1) at end of list
+inserting ".d" (2) at end of list
+Adding suffix ".e"
+defining transformation from `.d' to `.e'
+inserting ".d" (2) at end of list
+inserting ".e" (3) at end of list
+Adding suffix ".f"
+Adding suffix ".g"
+defining transformation from `.e' to `'
+inserting ".e" (3) at end of list
+inserting "" (0) at end of list
+defining transformation from `.e' to `.f'
+inserting ".e" (3) at end of list
+inserting ".f" (4) at end of list
+defining transformation from `.f' to `.e'
+inserting ".f" (4) at end of list
+inserting ".e" (3) at end of list
+transformation .e complete
+transformation .e.f complete
+transformation .f.e complete
+make: "suff-transform-select.mk" line 30: prevent endless loop
make: stopped in unit-tests
exit status 1
diff -r 22bc6d44997a -r a9943b03c535 usr.bin/make/unit-tests/suff-transform-select.mk
--- a/usr.bin/make/unit-tests/suff-transform-select.mk Mon Nov 23 14:04:28 2020 +0000
+++ b/usr.bin/make/unit-tests/suff-transform-select.mk Mon Nov 23 14:13:39 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: suff-transform-select.mk,v 1.1 2020/10/20 20:36:53 rillig Exp $
+# $NetBSD: suff-transform-select.mk,v 1.2 2020/11/23 14:13:39 rillig Exp $
#
# https://gnats.netbsd.org/49086, issue 10:
# Explicit dependencies affect transformation rule selection.
@@ -8,6 +8,8 @@
# The bug was that if issue10.d had an explicit dependency on issue10.f,
# it would choose .f.e instead.
+.MAKEFLAGS: -ds
+
_!= rm -f issue10.*
all: issue10.e
Home |
Main Index |
Thread Index |
Old Index