aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/XCOFFObjectFile.cpp
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2021-09-13 07:35:12 +0200
committerJan Kratochvil <jan.kratochvil@redhat.com>2021-09-13 07:35:12 +0200
commitff94f6024082ecd6b8a236b0953d3ce2d240cc64 (patch)
tree42efa56ba38fa7a8bc797b5532004e83f422aac5 /llvm/lib/Object/XCOFFObjectFile.cpp
parent939154125b336bb7807302ae22a9df91e4f2e69b (diff)
downloadllvm-ff94f6024082ecd6b8a236b0953d3ce2d240cc64.zip
llvm-ff94f6024082ecd6b8a236b0953d3ce2d240cc64.tar.gz
llvm-ff94f6024082ecd6b8a236b0953d3ce2d240cc64.tar.bz2
[lldb] [testsuite] Fix false failures on "\n" regex match
Regex is matching a binary so it needs `re.DOTALL`. vFile:fstat packet data ATTACHMENT is not hex-encoded but it is only escaped. It is difficult to reproduce, it came from buildbot: https://lab.llvm.org/staging/#/builders/16/builds/10597 ******************** TEST 'lldb-api :: tools/lldb-server/TestGdbRemotePlatformFile.py' FAILED ******************** FAIL: test_platform_file_fstat_llgs (TestGdbRemotePlatformFile.TestGdbRemotePlatformFile) ---------------------------------------------------------------------- Traceback (most recent call last): File "lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py", line 52, in test_method return attrvalue(self) File "lldb/test/API/tools/lldb-server/TestGdbRemotePlatformFile.py", line 259, in test_platform_file_fstat context = self.expect_gdbremote_sequence() File "lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py", line 621, in expect_gdbremote_sequence return expect_lldb_gdbserver_replay( File "lldb/packages/Python/lldbsuite/test/tools/lldb-server/lldbgdbserverutils.py", line 198, in expect_lldb_gdbserver_replay context = sequence_entry.assert_match( File "lldb/packages/Python/lldbsuite/test/tools/lldb-server/lldbgdbserverutils.py", line 479, in assert_match return self._assert_regex_match(asserter, actual_packet, context) File "lldb/packages/Python/lldbsuite/test/tools/lldb-server/lldbgdbserverutils.py", line 446, in _assert_regex_match asserter.fail( AssertionError: regex '^\$F([0-9a-fA-F]+);(.*)#[0-9a-fA-F]{2}$' failed to match against content '$F40;^@^@^@ ^@ ^C<8d>^@^@<81><80>^@^@^@^A^@^@^CX^@^@^CX^@^@^@^@^@^@^@^@^@^@^@^W^@^@^@^@^@^@^P^@^@^@^@^@^@^@^@ a=XXa=XXa=XX#6b'
Diffstat (limited to 'llvm/lib/Object/XCOFFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions