tests: Better isolate search text in test of error reporting. 20121001030503/pspp 20121002030515/pspp 20121003030503/pspp 20121004030504/pspp
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 30 Sep 2012 19:29:33 +0000 (12:29 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 30 Sep 2012 19:29:33 +0000 (12:29 -0700)
Some GNU/Linux distributions print additional text on a segfault,
e.g. "Cannot exec debugger: No such file or directory", which this
test was seeing in output and interpreting as a failed test.  This
commit fixes the problem by ignoring text up to the ***** line that
marks the start of the expected output.

Bug #37444.
Reported by Mindaugus.

tests/ui/terminal/main.at

index 38a88eca14a779174d838d8218ad836f2690c36e..1a22f7a0e85825b363dc046257e235b1d0ac556e 100644 (file)
@@ -34,5 +34,6 @@ include the syntax file that triggered it and a sample
 of any data file used for input.
 proximate cause:     Segmentation Violation
 ])
-AT_CHECK([sed '/proximate/q' < stderr], [0], [expout])
+AT_CHECK([sed -n '/\*\*\*/,$p
+/proximate/q' < stderr], [0], [expout])
 AT_CLEANUP