aboutsummaryrefslogtreecommitdiff
path: root/contrib/bmake/unit-tests/opt-debug-graph3.mk
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/bmake/unit-tests/opt-debug-graph3.mk')
-rw-r--r--contrib/bmake/unit-tests/opt-debug-graph3.mk22
1 files changed, 18 insertions, 4 deletions
diff --git a/contrib/bmake/unit-tests/opt-debug-graph3.mk b/contrib/bmake/unit-tests/opt-debug-graph3.mk
index 28166313d833..8cb99c59b6a7 100644
--- a/contrib/bmake/unit-tests/opt-debug-graph3.mk
+++ b/contrib/bmake/unit-tests/opt-debug-graph3.mk
@@ -1,9 +1,23 @@
-# $NetBSD: opt-debug-graph3.mk,v 1.1 2020/09/05 06:20:51 rillig Exp $
+# $NetBSD: opt-debug-graph3.mk,v 1.3 2021/02/02 17:47:56 rillig Exp $
#
# Tests for the -dg3 command line option, which prints the input
# graph before exiting on error.
+#
+# Before compat.c 1.222 from 2021-02-02, there was no debug output despite
+# the error.
+
+.MAKEFLAGS: -dg3
+
+.MAIN: all
+
+made-target: .PHONY
+ : 'Making $@.'
+
+error-target: .PHONY
+ false
-# TODO: Implementation
+aborted-target: .PHONY aborted-target-dependency
+aborted-target-dependency: .PHONY
+ false
-all:
- @:;
+all: made-target error-target aborted-target