summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2016-04-14 15:52:53 +0000
committerPavel Labath <labath@google.com>2016-04-14 15:52:53 +0000
commite6961d0306d0631bb9218d2c88a8ca657259eb35 (patch)
treebaa4c88fd40233a7e7717e6a6388d52407a581e5 /lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py
parentf677cd539f0a71cd4b2ae9a990167ec6a98713ef (diff)
downloadbcm5719-llvm-e6961d0306d0631bb9218d2c88a8ca657259eb35.tar.gz
bcm5719-llvm-e6961d0306d0631bb9218d2c88a8ca657259eb35.zip
[test] Relax stderr expectations on targets with chatty output
Summary: On some android targets, a binary can produce additional garbage (e.g. warning messages from the dynamic linker) on the standard error, which confuses some tests. This relaxes the stderr expectations for targets known for their chattyness. Reviewers: tfiala, ovyalov Subscribers: tberghammer, danalbert, srhines, lldb-commits Differential Revision: http://reviews.llvm.org/D19114 llvm-svn: 266326
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py b/lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py
index 340eb19521a..0fe9fdc03b4 100644
--- a/lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py
+++ b/lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py
@@ -1374,3 +1374,6 @@ class GdbRemoteTestCaseBase(TestBase):
self.assertTrue(state_reached)
self.assertEqual(step_count, expected_step_count)
+ def maybe_strict_output_regex(self, regex):
+ return '.*'+regex+'.*' if lldbplatformutil.hasChattyStderr(self) else '^'+regex+'$'
+
OpenPOWER on IntegriCloud