From 1b9024889384fc26d296ee4340ffca32e8c73017 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sun, 15 Sep 2013 16:41:42 -0400 Subject: [SV 27374] Fatal immediately on unrecoverable fopen() errors. --- tests/run_make_tests.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/run_make_tests.pl') diff --git a/tests/run_make_tests.pl b/tests/run_make_tests.pl index cb8e1bd..d8a093b 100644 --- a/tests/run_make_tests.pl +++ b/tests/run_make_tests.pl @@ -148,8 +148,10 @@ sub run_make_test } # Do the same processing on $answer as we did on $makestring. - $answer && $answer !~ /\n$/s and $answer .= "\n"; - $answer = subst_make_string($answer); + if (defined $answer) { + $answer && $answer !~ /\n$/s and $answer .= "\n"; + $answer = subst_make_string($answer); + } run_make_with_options($makefile, $options, &get_logfile(0), $err_code, $timeout); -- cgit v1.2.3