aboutsummaryrefslogtreecommitdiff
path: root/contrib/bmake/unit-tests/opt-silent.mk
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/bmake/unit-tests/opt-silent.mk')
-rw-r--r--contrib/bmake/unit-tests/opt-silent.mk8
1 files changed, 5 insertions, 3 deletions
diff --git a/contrib/bmake/unit-tests/opt-silent.mk b/contrib/bmake/unit-tests/opt-silent.mk
index 7822d46ac48a..01e5b18e2b12 100644
--- a/contrib/bmake/unit-tests/opt-silent.mk
+++ b/contrib/bmake/unit-tests/opt-silent.mk
@@ -1,8 +1,10 @@
-# $NetBSD: opt-silent.mk,v 1.2 2020/08/16 14:25:16 rillig Exp $
+# $NetBSD: opt-silent.mk,v 1.3 2022/01/23 16:09:38 rillig Exp $
#
# Tests for the -s command line option.
-# TODO: Implementation
+.MAKEFLAGS: -s
+# No matter whether a command is prefixed by '@' or not, it is not echoed.
all:
- @:;
+ echo 'message'
+ @echo 'silent message'