Testsuite: better non-TFO-system debug handling
authorJeremy Harris <jgh146exb@wizmail.org>
Sun, 24 Nov 2019 19:02:57 +0000 (19:02 +0000)
committerJeremy Harris <jgh146exb@wizmail.org>
Sat, 30 Nov 2019 16:21:34 +0000 (16:21 +0000)
test/runtest

index 541d62a..87c7807 100755 (executable)
@@ -1256,9 +1256,10 @@ RESET_AFTER_EXTRA_LINE_READ:
     # Not all platforms support TCP Fast Open, and the compile omits the check
     if (s/\S+ in hosts_try_fastopen\? (no \(option unset\)|yes \(matched "\*"\))\n$//)
       {
+      chomp;
       $_ .= <IN>;
       s/ \.\.\. >>> / ... /;
-      if (s/ non-TFO mode connection attempt to 224.0.0.0, 0 data\b$//) { $_ .= <IN>; }
+      if (s/ non-TFO mode connection attempt to 224.0.0.0, 0 data\b$//) { chomp; $_ .= <IN>; }
       s/Address family not supported by protocol family/Network Error/;
       s/Network is unreachable/Network Error/;
       }