aboutsummaryrefslogtreecommitdiff
path: root/contrib/bmake/unit-tests/opt-raw.mk
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/bmake/unit-tests/opt-raw.mk')
-rw-r--r--contrib/bmake/unit-tests/opt-raw.mk16
1 files changed, 11 insertions, 5 deletions
diff --git a/contrib/bmake/unit-tests/opt-raw.mk b/contrib/bmake/unit-tests/opt-raw.mk
index d3591bb99dab..91caffcd72ae 100644
--- a/contrib/bmake/unit-tests/opt-raw.mk
+++ b/contrib/bmake/unit-tests/opt-raw.mk
@@ -1,8 +1,14 @@
-# $NetBSD: opt-raw.mk,v 1.2 2020/08/16 14:25:16 rillig Exp $
+# $NetBSD: opt-raw.mk,v 1.3 2022/01/23 16:09:38 rillig Exp $
#
-# Tests for the -r command line option.
+# Tests for the -r command line option, which skips the system-defined default
+# rules from <sys.mk>.
-# TODO: Implementation
+# To provide a clean testing environment without unintended side effects,
+# these unit tests run make with the option '-r' by default. This means there
+# are no predefined suffixes and no predefined tools.
-all:
- @:;
+.if defined(CC)
+. error
+.endif
+
+all: .PHONY