summaryrefslogtreecommitdiff
path: root/usr.bin/make/unit-tests/objdir-writable.mk
diff options
context:
space:
mode:
authorrillig <rillig@NetBSD.org>2022-02-09 21:24:29 +0000
committerrillig <rillig@NetBSD.org>2022-02-09 21:24:29 +0000
commit7a3bf37fd346bacbd8a52b04924b5439fc9f8a13 (patch)
tree8aea68254bc1ded8dd429bc9cde00cec34b4ddbd /usr.bin/make/unit-tests/objdir-writable.mk
parent16b60d57031205c3387394ed88218fffceb4314e (diff)
tests/make: remove redundant 'echo' from variable assignments
Before main.c 1.231 from 2014-09-09, a variable assignment using the operator '!=' generated a warning "Couldn't read shell's output" if the output of the command was empty. The simplest way to suppress this wrong warning was to add an empty 'echo' to the command. This hack is no longer needed.
Diffstat (limited to 'usr.bin/make/unit-tests/objdir-writable.mk')
-rw-r--r--usr.bin/make/unit-tests/objdir-writable.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/make/unit-tests/objdir-writable.mk b/usr.bin/make/unit-tests/objdir-writable.mk
index e9575dc222d..03a42c485db 100644
--- a/usr.bin/make/unit-tests/objdir-writable.mk
+++ b/usr.bin/make/unit-tests/objdir-writable.mk
@@ -1,4 +1,4 @@
-# $NetBSD: objdir-writable.mk,v 1.6 2022/02/09 21:09:24 rillig Exp $
+# $NetBSD: objdir-writable.mk,v 1.7 2022/02/09 21:24:29 rillig Exp $
# test checking for writable objdir
@@ -14,7 +14,8 @@ do-objdir:
all: no-objdir ro-objdir explicit-objdir
# make it now
-x!= echo; mkdir -p ${RO_OBJDIR}; chmod 555 ${RO_OBJDIR}
+_!= mkdir -p ${RO_OBJDIR}
+_!= chmod 555 ${RO_OBJDIR}
.END: rm-objdir
rm-objdir: