summaryrefslogtreecommitdiff
path: root/tests/run_make_tests.pl
diff options
context:
space:
mode:
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);