From 0d348add42028c233efead8ea6ce45503fe29c35 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 20 Jan 2018 15:59:56 +0000 Subject: Test runner: Fix handling of empty output lines. --- testtools/testrunner.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 = ) { # 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); -- cgit v1.2.3