Skip to content

Commit 0c88cd4

Browse files
committed
[lldb][test] Fix some 'import-std-module' tests
Some tests from 'import-std-module' used to fail on the builder https://lab.llvm.org/staging/#/builders/195/builds/4470, since libcxx is set up to be linked statically with test binaries on it. Thus, they were temporarily disabled in #112530. Here, this commit is reverted. Jitted expressions from the tests try to call __libcpp_verbose_abort function that is not present in the process image, which causes the failure. Here, this symbol is explicitly referenced from the test source files.
1 parent 6e0c074 commit 0c88cd4

File tree

3 files changed

+9
-0
lines changed
  • lldb/test/API/commands/expression/import-std-module

3 files changed

+9
-0
lines changed

lldb/test/API/commands/expression/import-std-module/array/main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#include <array>
2+
#include <__verbose_abort>
3+
4+
void *libcpp_verbose_abort_ptr = (void *) &std::__libcpp_verbose_abort;
25

36
struct DbgInfo {
47
int v = 4;

lldb/test/API/commands/expression/import-std-module/vector-dbg-info-content/main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#include <vector>
2+
#include <__verbose_abort>
3+
4+
void *libcpp_verbose_abort_ptr = (void *) &std::__libcpp_verbose_abort;
25

36
struct Foo {
47
int a;

lldb/test/API/commands/expression/import-std-module/vector-of-vectors/main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#include <vector>
2+
#include <__verbose_abort>
3+
4+
void *libcpp_verbose_abort_ptr = (void *) &std::__libcpp_verbose_abort;
25

36
int main(int argc, char **argv) {
47
std::vector<std::vector<int> > a = {{1, 2, 3}, {3, 2, 1}};

0 commit comments

Comments
 (0)