summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2019-12-09 18:52:49 +0100
committerPavel Labath <pavel@labath.sk>2019-12-09 19:01:52 +0100
commitbe05633e28949139093278d5ce57a194756bfb83 (patch)
treec26fa3c383e946edbadb468978c1406a878617a4 /lldb/packages/Python/lldbsuite
parenta209a8000e17ef3560598a44825747aab2f7914d (diff)
downloadbcm5719-llvm-be05633e28949139093278d5ce57a194756bfb83.tar.gz
bcm5719-llvm-be05633e28949139093278d5ce57a194756bfb83.zip
[lldb] Clean up accidentally passing TestDeadStrip.py
This test was accidentally passing on non-darwin OS because it was explicitly setting the CFLAGS make variable. This meant that (in the default config) it was building with absolutely no debug info, and so setting a breakpoint on a stripped symbol failed, because there was really no trace of it remaining. In other configurations, we were generating the debug info (-gsplit-dwarf implies -g) and the test failed because we did not treat the zeroed out debug info address specially. The test was also xfailed in pretty much every non-standard configuration. This patch fixes the makefile to avoid messing with CFLAGS (use CFLAGS_EXTRAS instead). This causes it to fail in all configurations (except darwin), and so I replace the various decorators with a simple os!=darwin check.
Diffstat (limited to 'lldb/packages/Python/lldbsuite')
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/dead-strip/Makefile6
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/dead-strip/TestDeadStrip.py10
2 files changed, 5 insertions, 11 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/dead-strip/Makefile b/lldb/packages/Python/lldbsuite/test/functionalities/dead-strip/Makefile
index c39b681d187..9c2ed185109 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/dead-strip/Makefile
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/dead-strip/Makefile
@@ -5,10 +5,10 @@ ifeq "$(OS)" ""
endif
ifeq "$(OS)" "Darwin"
- LDFLAGS = $(CFLAGS) -Xlinker -dead_strip
+ LD_EXTRAS = -Xlinker -dead_strip
else
- CFLAGS += -fdata-sections -ffunction-sections
- LDFLAGS = $(CFLAGS) -Wl,--gc-sections
+ CFLAGS_EXTRAS += -fdata-sections -ffunction-sections
+ LD_EXTRAS = -Wl,--gc-sections
endif
MAKE_DSYM := NO
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/dead-strip/TestDeadStrip.py b/lldb/packages/Python/lldbsuite/test/functionalities/dead-strip/TestDeadStrip.py
index 8a2dfa76f4d..efae35f1ddf 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/dead-strip/TestDeadStrip.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/dead-strip/TestDeadStrip.py
@@ -15,14 +15,8 @@ class DeadStripTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
- @expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr24778")
- @expectedFailureAll(debug_info="dwo", bugnumber="llvm.org/pr25087")
- @expectedFailureAll(
- oslist=["linux"],
- debug_info="gmodules",
- bugnumber="llvm.org/pr27865")
- # The -dead_strip linker option isn't supported on FreeBSD versions of ld.
- @skipIfFreeBSD
+ @expectedFailureAll(oslist=no_match(lldbplatformutil.getDarwinOSTriples()),
+ bugnumber="llvm.org/pr24778 llvm.org/pr25087 llvm.org/pr27865")
def test(self):
"""Test breakpoint works correctly with dead-code stripping."""
self.build()
OpenPOWER on IntegriCloud