]> git.ipfire.org Git - thirdparty/make.git/commitdiff
* tests/test_driver.pl: Useful error if given an invalid test name.
authorPaul Smith <psmith@gnu.org>
Sun, 28 May 2017 04:32:26 +0000 (00:32 -0400)
committerPaul Smith <psmith@gnu.org>
Sun, 4 Jun 2017 22:37:21 +0000 (18:37 -0400)
tests/test_driver.pl

index 1824b1dc43caef81be2e327f3846424fc8294cf8..f7dbc8d11fe4e57d641f2570162c15159cbea79c 100644 (file)
@@ -609,6 +609,8 @@ sub run_all_tests
         $run_filename = "$testpath.$runext";
         $tmp_filename = "$testpath.$tmpfilesuffix";
 
+        -f $perl_testname or die "Invalid test: $testname\n\n";
+
         setup_for_test();
 
         $output = "........................................................ ";