aboutsummaryrefslogtreecommitdiff
path: root/contrib/bmake/unit-tests/deptgt-begin-fail.mk
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/bmake/unit-tests/deptgt-begin-fail.mk')
-rw-r--r--contrib/bmake/unit-tests/deptgt-begin-fail.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/bmake/unit-tests/deptgt-begin-fail.mk b/contrib/bmake/unit-tests/deptgt-begin-fail.mk
new file mode 100644
index 000000000000..80cea25664ec
--- /dev/null
+++ b/contrib/bmake/unit-tests/deptgt-begin-fail.mk
@@ -0,0 +1,10 @@
+# $NetBSD: deptgt-begin-fail.mk,v 1.1 2020/11/24 19:02:59 rillig Exp $
+#
+# Test for a .BEGIN target whose command results in an error.
+# This stops make immediately and does not build the main targets.
+
+.BEGIN:
+ false
+
+all:
+ : This is not made.