[Lldb-commits] [lldb] [lldb][test] Fix TestStdCXXDisassembly test for case when tests are linked with libc++ statically (PR #98694)
Vladislav Dzhidzhoev via lldb-commits
lldb-commits at lists.llvm.org
Thu Oct 10 09:28:16 PDT 2024
https://github.com/dzhidzhoev updated https://github.com/llvm/llvm-project/pull/98694
>From 35db69bd4f65c2b99ba8f366d7de36e7901ccb88 Mon Sep 17 00:00:00 2001
From: Vladimir Vereschaka <vvereschaka at accesssoftek.com>
Date: Thu, 30 May 2024 03:04:58 +0000
Subject: [PATCH] [lldb][test] Fix TestStdCXXDisassembly test when tests are
linked with libc++ statically
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 presence of any of them.
---
lldb/test/API/lang/cpp/stl/Makefile | 2 ++
lldb/test/API/lang/cpp/stl/TestStdCXXDisassembly.py | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/lldb/test/API/lang/cpp/stl/Makefile b/lldb/test/API/lang/cpp/stl/Makefile
index 99998b20bcb050..8534fa9b00209e 100644
--- a/lldb/test/API/lang/cpp/stl/Makefile
+++ b/lldb/test/API/lang/cpp/stl/Makefile
@@ -1,3 +1,5 @@
CXX_SOURCES := main.cpp
+USE_SYSTEM_STDLIB := 1
+
include Makefile.rules
diff --git a/lldb/test/API/lang/cpp/stl/TestStdCXXDisassembly.py b/lldb/test/API/lang/cpp/stl/TestStdCXXDisassembly.py
index 1e1b0a4d621f04..cc46989f984b25 100644
--- a/lldb/test/API/lang/cpp/stl/TestStdCXXDisassembly.py
+++ b/lldb/test/API/lang/cpp/stl/TestStdCXXDisassembly.py
@@ -44,7 +44,7 @@ def test_stdcxx_disasm(self):
# module is the corresponding SBModule.
self.expect(
- lib_stdcxx, "Libraray StdC++ is located", exe=False, substrs=["lib"]
+ lib_stdcxx, "Library StdC++ is located", exe=False, substrs=["lib"]
)
self.runCmd("image dump symtab '%s'" % lib_stdcxx)
More information about the lldb-commits
mailing list