diff options
Diffstat (limited to 'contrib/bmake/unit-tests/opt-ignore.mk')
-rw-r--r-- | contrib/bmake/unit-tests/opt-ignore.mk | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/contrib/bmake/unit-tests/opt-ignore.mk b/contrib/bmake/unit-tests/opt-ignore.mk new file mode 100644 index 000000000000..6d6d8dc3a339 --- /dev/null +++ b/contrib/bmake/unit-tests/opt-ignore.mk @@ -0,0 +1,30 @@ +# $NetBSD: opt-ignore.mk,v 1.3 2020/08/23 14:28:04 rillig Exp $ +# +# Tests for the -i command line option, which ignores the exit status of the +# shell commands, and just continues with the next command, even from the same +# target. +# +# Is there a situation in which this option is useful? +# +# Why are the "Error code" lines all collected at the bottom of the output +# file, where they cannot be related to the individual shell commands that +# failed? + +all: dependency other + +dependency: + @echo dependency 1 + @false + @echo dependency 2 + @:; exit 7 + @echo dependency 3 + +other: + @echo other 1 + @false + @echo other 2 + +all: + @echo main 1 + @false + @echo main 2 |