summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-08-28 16:26:54 -0700
committerKarl Berry <karl@freefriends.org>2020-08-28 16:26:54 -0700
commit3bbcf6832ef28598ac322633d39462c1293d709b (patch)
treeb407f5133a6894a25f7eba13e0527deb43bb7061 /bin
parentc8f8c3d5fa0d30d7b7398c74632c90506ccda39e (diff)
downloadautomake-3bbcf6832ef28598ac322633d39462c1293d709b.tar.gz
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.
Diffstat (limited to 'bin')
-rw-r--r--bin/automake.in2
1 files changed, 1 insertions, 1 deletions
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, '');