Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make/unit-tests Test that .undef of readOnly variabl...
details: https://anonhg.NetBSD.org/src/rev/e9e6d2f51a84
branches: trunk
changeset: 376466:e9e6d2f51a84
user: sjg <sjg%NetBSD.org@localhost>
date: Mon Jun 19 15:37:48 2023 +0000
description:
Test that .undef of readOnly variable fails
diffstat:
usr.bin/make/unit-tests/var-readonly.mk | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r c235f4878c78 -r e9e6d2f51a84 usr.bin/make/unit-tests/var-readonly.mk
--- a/usr.bin/make/unit-tests/var-readonly.mk Mon Jun 19 12:53:57 2023 +0000
+++ b/usr.bin/make/unit-tests/var-readonly.mk Mon Jun 19 15:37:48 2023 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: var-readonly.mk,v 1.2 2023/06/01 20:56:35 rillig Exp $
+# $NetBSD: var-readonly.mk,v 1.3 2023/06/19 15:37:48 sjg Exp $
# the answer
N = 42
@@ -9,6 +9,12 @@ N = 666
.error N ($N) should be 42
.endif
+# undef should fail
+.undef N
+.ifndef N
+.error N should not be undef'd
+.endif
+
.NOREADONLY: N
# now we can change it
N = 69
Home |
Main Index |
Thread Index |
Old Index