aboutsummaryrefslogtreecommitdiff
path: root/contrib/bmake/unit-tests/jobs-error-nested-make.mk
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/bmake/unit-tests/jobs-error-nested-make.mk')
-rw-r--r--contrib/bmake/unit-tests/jobs-error-nested-make.mk20
1 files changed, 20 insertions, 0 deletions
diff --git a/contrib/bmake/unit-tests/jobs-error-nested-make.mk b/contrib/bmake/unit-tests/jobs-error-nested-make.mk
new file mode 100644
index 000000000000..8cccf7df6a52
--- /dev/null
+++ b/contrib/bmake/unit-tests/jobs-error-nested-make.mk
@@ -0,0 +1,20 @@
+# $NetBSD: jobs-error-nested-make.mk,v 1.2 2021/01/07 18:11:23 sjg Exp $
+#
+# Ensure that in jobs mode, when a command fails, the current directory is
+# printed, to aid in debugging, even if the target is marked as .MAKE.
+# This marker is typically used for targets like 'all' that descend into
+# subdirectories.
+#
+# XXX: In case of .MAKE targets, the "stopped if" output has been suppressed
+# since job.c 1.198 from 2020-06-19.
+#
+# https://gnats.netbsd.org/55578
+# https://gnats.netbsd.org/55832
+
+.MAKEFLAGS: -j1
+
+all: .PHONY .MAKE
+ ${MAKE} -f ${MAKEFILE} nested
+
+nested: .PHONY
+ false