Skip to content

Commit f035d9f

Browse files
[lldb][test] Fix TestStdCXXDisassembly test for case when tests are linked with libc++ statically (#98694)
This is to fix buildbot failure https://lab.llvm.org/staging/#/builders/195/builds/4255. The test expects 'libstdc++' or 'libc++' SO module in the module list. In case when static linking with libc++ is on by default, none of them may be present. Thus, USE_SYSTEM_STDLIB is added to ensure the presence of any of them. --------- Co-authored-by: Vladimir Vereschaka <[email protected]>
1 parent 1c6c850 commit f035d9f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lldb/test/API/lang/cpp/stl/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
CXX_SOURCES := main.cpp
22

3+
USE_SYSTEM_STDLIB := 1
4+
35
include Makefile.rules

lldb/test/API/lang/cpp/stl/TestStdCXXDisassembly.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ def test_stdcxx_disasm(self):
4343
# At this point, lib_stdcxx is the full path to the stdc++ library and
4444
# module is the corresponding SBModule.
4545

46-
self.expect(
47-
lib_stdcxx, "Libraray StdC++ is located", exe=False, substrs=["lib"]
48-
)
46+
self.expect(lib_stdcxx, "Library StdC++ is located", exe=False, substrs=["lib"])
4947

5048
self.runCmd("image dump symtab '%s'" % lib_stdcxx)
5149
raw_output = self.res.GetOutput()

0 commit comments

Comments
 (0)