summaryrefslogtreecommitdiff
path: root/unit-tests/opt-debug.mk
diff options
context:
space:
mode:
Diffstat (limited to 'unit-tests/opt-debug.mk')
-rw-r--r--unit-tests/opt-debug.mk12
1 files changed, 9 insertions, 3 deletions
diff --git a/unit-tests/opt-debug.mk b/unit-tests/opt-debug.mk
index afd740a6caab..973085ba2de7 100644
--- a/unit-tests/opt-debug.mk
+++ b/unit-tests/opt-debug.mk
@@ -1,8 +1,14 @@
-# $NetBSD: opt-debug.mk,v 1.2 2020/08/16 14:25:16 rillig Exp $
+# $NetBSD: opt-debug.mk,v 1.5 2020/10/05 19:27:48 rillig Exp $
#
-# Tests for the -d command line option.
+# Tests for the -d command line option, which controls debug logging.
-# TODO: Implementation
+# Enable debug logging for the variables (var.c).
+.MAKEFLAGS: -dv
+
+VAR= value
+
+# Disable all debug logging again.
+.MAKEFLAGS: -d0 # -d0 is available since 2020-10-03
all:
@:;