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 make(1): add test for "no target to ...



details:   https://anonhg.NetBSD.org/src/rev/98c5f18a7aca
branches:  trunk
changeset: 937607:98c5f18a7aca
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Aug 22 12:51:11 2020 +0000

description:
make(1): add test for "no target to make"

diffstat:

 usr.bin/make/unit-tests/Makefile     |  3 ++-
 usr.bin/make/unit-tests/dep-none.exp |  4 ++++
 usr.bin/make/unit-tests/dep-none.mk  |  3 +++
 3 files changed, 9 insertions(+), 1 deletions(-)

diffs (32 lines):

diff -r 454da52956fd -r 98c5f18a7aca usr.bin/make/unit-tests/Makefile
--- a/usr.bin/make/unit-tests/Makefile  Sat Aug 22 12:42:32 2020 +0000
+++ b/usr.bin/make/unit-tests/Makefile  Sat Aug 22 12:51:11 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.106 2020/08/22 11:27:02 rillig Exp $
+# $NetBSD: Makefile,v 1.107 2020/08/22 12:51:11 rillig Exp $
 #
 # Unit tests for make(1)
 #
@@ -65,6 +65,7 @@
 TESTS+=                dep-colon
 TESTS+=                dep-double-colon
 TESTS+=                dep-exclam
+TESTS+=                dep-none
 TESTS+=                dep-wildcards
 TESTS+=                depsrc
 TESTS+=                depsrc-exec
diff -r 454da52956fd -r 98c5f18a7aca usr.bin/make/unit-tests/dep-none.exp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/usr.bin/make/unit-tests/dep-none.exp      Sat Aug 22 12:51:11 2020 +0000
@@ -0,0 +1,4 @@
+make: no target to make.
+
+make: stopped in unit-tests
+exit status 2
diff -r 454da52956fd -r 98c5f18a7aca usr.bin/make/unit-tests/dep-none.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/usr.bin/make/unit-tests/dep-none.mk       Sat Aug 22 12:51:11 2020 +0000
@@ -0,0 +1,3 @@
+# $NetBSD: dep-none.mk,v 1.1 2020/08/22 12:51:11 rillig Exp $
+#
+# Test for a Makefile that declares no target at all.



Home | Main Index | Thread Index | Old Index