[Lldb-commits] [PATCH] D42914: Rewrite TestTargetSymbolsBuildidCase to be more focused

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Feb 5 09:23:52 PST 2018


labath created this revision.
labath added a reviewer: jankratochvil.

The test was failing in remote debugging scenario with windows as a host
as cmd.exe is not able to parse the complicated shell commands in the
Makefile.

The test seemed like a perfect candidate for a more focused testing
approach, so I have tried rewriting it this way. It uses two yaml
files which represent "stripped" and "unstripped" versions of a binary.
The unstripped version defines a symbol "main" while the stripped one
doesn't. The test works by creating an SBModule pointing the the
stripped file and verifies that we are able to locate the unstripped one
by looking up the "main" symbol.


https://reviews.llvm.org/D42914

Files:
  packages/Python/lldbsuite/test/linux/buildidcase/Makefile
  packages/Python/lldbsuite/test/linux/buildidcase/TestTargetSymbolsBuildidCase.py
  packages/Python/lldbsuite/test/linux/buildidcase/main.c
  packages/Python/lldbsuite/test/linux/buildidcase/stripped.yaml
  packages/Python/lldbsuite/test/linux/buildidcase/unstripped.yaml

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42914.132851.patch
Type: text/x-patch
Size: 4699 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20180205/d1e495e3/attachment-0001.bin>


More information about the lldb-commits mailing list