summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2018-01-20 15:59:56 (GMT)
committer Michael Drake <tlsa@netsurf-browser.org>2018-01-20 15:59:56 (GMT)
commit0d348add42028c233efead8ea6ce45503fe29c35 (patch)
tree8828b594c0fe7622b9823c0deb5be09c981bb63d
parentd204212f8855997428324607b19fb0bd33881f37 (diff)
downloadbuildsystem-master.tar.gz
buildsystem-master.tar.bz2
Test runner: Fix handling of empty output lines.HEADmaster
-rw-r--r--testtools/testrunner.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/testtools/testrunner.pl b/testtools/testrunner.pl
index fe55ebe..ad6fcdc 100644
--- a/testtools/testrunner.pl
+++ b/testtools/testrunner.pl
@@ -86,7 +86,7 @@ while (my $line = <TINDEX>) {
# Run testcase
run_test("$builddir/$test",
"$directory/data/$data/$dtest");
- }
+ }
close(DINDEX);
} else {
@@ -148,6 +148,8 @@ sub run_test
# EOF, so remove handle
$selector->remove($fh);
next;
+ } elsif ($len == 1 && $input eq "\n") {
+ # Skip bare new line.
} else {
# Split into lines
my @lines = split('\n', $input);