summaryrefslogtreecommitdiff
path: root/tests/run_make_tests.pl
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2013-09-15 16:41:42 -0400
committerPaul Smith <psmith@gnu.org>2013-09-15 17:09:01 -0400
commit1b9024889384fc26d296ee4340ffca32e8c73017 (patch)
tree88312b516ca64a727dffcbe87bf9aec3674e7a92 /tests/run_make_tests.pl
parenta4d8444b594e53b13659a9f2c64424418f255e27 (diff)
downloadgunmake-1b9024889384fc26d296ee4340ffca32e8c73017.tar.gz
[SV 27374] Fatal immediately on unrecoverable fopen() errors.
Diffstat (limited to 'tests/run_make_tests.pl')
-rw-r--r--tests/run_make_tests.pl6
1 files changed, 4 insertions, 2 deletions
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);