From 0586779167e0ada4328afb0300d701da31390206 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sun, 30 Sep 2012 12:29:33 -0700 Subject: [PATCH] tests: Better isolate search text in test of error reporting. 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/ui/terminal/main.at b/tests/ui/terminal/main.at index 38a88eca14..1a22f7a0e8 100644 --- a/tests/ui/terminal/main.at +++ b/tests/ui/terminal/main.at @@ -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 -- 2.30.2