From 3bbcf6832ef28598ac322633d39462c1293d709b Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 28 Aug 2020 16:26:54 -0700 Subject: automake: if TEST_EXTENSIONS is set to empty, don't look inside it. This change fixes https://bugs.gnu.org/42635. * bin/automake.in (handle_tests): do not use $test_suffixes[0] if it does not exist. * t/test-extensions-empty.sh: new test. * t/list-of-tests.mk (handwritten_TESTS): add it. --- bin/automake.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/automake.in b/bin/automake.in index 67f6f3a67..c12078711 100644 --- a/bin/automake.in +++ b/bin/automake.in @@ -4954,7 +4954,7 @@ sub handle_tests () if ($handle_exeext) { unshift (@test_suffixes, $at_exeext) - unless $test_suffixes[0] eq $at_exeext; + unless @test_suffixes && $test_suffixes[0] eq $at_exeext; } unshift (@test_suffixes, ''); -- cgit v1.2.1