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 missing "Stop"...
details: https://anonhg.NetBSD.org/src/rev/8e705b01f499
branches: trunk
changeset: 957316:8e705b01f499
user: rillig <rillig%NetBSD.org@localhost>
date: Tue Nov 24 15:36:51 2020 +0000
description:
make(1): add test for missing "Stop" after error in .END
diffstat:
distrib/sets/lists/tests/mi | 4 +++-
usr.bin/make/unit-tests/Makefile | 3 ++-
usr.bin/make/unit-tests/deptgt-end-fail.exp | 4 ++++
usr.bin/make/unit-tests/deptgt-end-fail.mk | 13 +++++++++++++
4 files changed, 22 insertions(+), 2 deletions(-)
diffs (60 lines):
diff -r f894647e1c7d -r 8e705b01f499 distrib/sets/lists/tests/mi
--- a/distrib/sets/lists/tests/mi Tue Nov 24 07:46:46 2020 +0000
+++ b/distrib/sets/lists/tests/mi Tue Nov 24 15:36:51 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.975 2020/11/23 15:00:32 rillig Exp $
+# $NetBSD: mi,v 1.976 2020/11/24 15:36:51 rillig Exp $
#
# Note: don't delete entries from here - mark them as "obsolete" instead.
#
@@ -4961,6 +4961,8 @@
./usr/tests/usr.bin/make/unit-tests/deptgt-default.mk tests-usr.bin-tests compattestfile,atf
./usr/tests/usr.bin/make/unit-tests/deptgt-delete_on_error.exp tests-usr.bin-tests compattestfile,atf
./usr/tests/usr.bin/make/unit-tests/deptgt-delete_on_error.mk tests-usr.bin-tests compattestfile,atf
+./usr/tests/usr.bin/make/unit-tests/deptgt-end-fail.exp tests-usr.bin-tests compattestfile,atf
+./usr/tests/usr.bin/make/unit-tests/deptgt-end-fail.mk tests-usr.bin-tests compattestfile,atf
./usr/tests/usr.bin/make/unit-tests/deptgt-end-jobs.exp tests-usr.bin-tests compattestfile,atf
./usr/tests/usr.bin/make/unit-tests/deptgt-end-jobs.mk tests-usr.bin-tests compattestfile,atf
./usr/tests/usr.bin/make/unit-tests/deptgt-end.exp tests-usr.bin-tests compattestfile,atf
diff -r f894647e1c7d -r 8e705b01f499 usr.bin/make/unit-tests/Makefile
--- a/usr.bin/make/unit-tests/Makefile Tue Nov 24 07:46:46 2020 +0000
+++ b/usr.bin/make/unit-tests/Makefile Tue Nov 24 15:36:51 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.221 2020/11/23 16:01:59 rillig Exp $
+# $NetBSD: Makefile,v 1.222 2020/11/24 15:36:51 rillig Exp $
#
# Unit tests for make(1)
#
@@ -112,6 +112,7 @@
TESTS+= deptgt-default
TESTS+= deptgt-delete_on_error
TESTS+= deptgt-end
+TESTS+= deptgt-end-fail
TESTS+= deptgt-end-jobs
TESTS+= deptgt-error
TESTS+= deptgt-ignore
diff -r f894647e1c7d -r 8e705b01f499 usr.bin/make/unit-tests/deptgt-end-fail.exp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/usr.bin/make/unit-tests/deptgt-end-fail.exp Tue Nov 24 15:36:51 2020 +0000
@@ -0,0 +1,4 @@
+: all
+false
+*** Error code 1 (continuing)
+exit status 0
diff -r f894647e1c7d -r 8e705b01f499 usr.bin/make/unit-tests/deptgt-end-fail.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/usr.bin/make/unit-tests/deptgt-end-fail.mk Tue Nov 24 15:36:51 2020 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: deptgt-end-fail.mk,v 1.1 2020/11/24 15:36:51 rillig Exp $
+#
+# Tests for an error in the .END node.
+#
+# Before 2020-11-25, an error in the .END target did not print the "Stop.",
+# even though this was intended. The cause for this was a simple typo in
+# a variable name.
+
+all:
+ : $@
+
+.END:
+ false
Home |
Main Index |
Thread Index |
Old Index