Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/usr.bin/make usr.bin/make: fix test failure



details:   https://anonhg.NetBSD.org/src/rev/f4716832e7e9
branches:  trunk
changeset: 1010830:f4716832e7e9
user:      rillig <rillig%NetBSD.org@localhost>
date:      Mon Jun 08 19:50:10 2020 +0000

description:
usr.bin/make: fix test failure

The two files include-sub.mk and include-subsub.mk were never intended to
be test cases on their own.  They belong to include-main.mk.

Fixes PR bin/55360.

diffstat:

 tests/usr.bin/make/t_make.sh |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 22881a0bbc0f -r f4716832e7e9 tests/usr.bin/make/t_make.sh
--- a/tests/usr.bin/make/t_make.sh      Mon Jun 08 17:28:10 2020 +0000
+++ b/tests/usr.bin/make/t_make.sh      Mon Jun 08 19:50:10 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_make.sh,v 1.7 2015/01/27 12:57:14 martin Exp $
+# $NetBSD: t_make.sh,v 1.8 2020/06/08 19:50:10 rillig Exp $
 #
 # Copyright (c) 2008, 2010, 2014 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -77,6 +77,12 @@
        for filename in "$(atf_get_srcdir)"/unit-tests/*.mk ; do
            basename="${filename##*/}"
            basename="${basename%.mk}"
+
+           # skip files that are not test cases on their own
+           case "${basename}" in
+           include-sub*) continue;;
+           esac
+
            atfname="$(echo "${basename}" | tr "x-" "x_")"
            descr='' # XXX
             test_case "${atfname}" "${basename}" "${descr}"



Home | Main Index | Thread Index | Old Index