diff --git a/lldb/test/API/python_api/block/TestBlocks.py b/lldb/test/API/python_api/block/TestFrameBlocks.py similarity index 98% rename from lldb/test/API/python_api/block/TestBlocks.py rename to lldb/test/API/python_api/block/TestFrameBlocks.py index d5e7a5eeef49e..923cc4a79462a 100644 --- a/lldb/test/API/python_api/block/TestBlocks.py +++ b/lldb/test/API/python_api/block/TestFrameBlocks.py @@ -8,7 +8,7 @@ from lldbsuite.test import lldbutil -class BlockAPITestCase(TestBase): +class FrameBlocksTestCase(TestBase): def test_block_equality(self): """Exercise SBBlock equality checks across frames and functions in different dylibs.""" self.build() diff --git a/lldb/test/API/python_api/block/fn.c b/lldb/test/API/python_api/block/fn.c index 80ea7e5baa11e..9534f8c2083ff 100644 --- a/lldb/test/API/python_api/block/fn.c +++ b/lldb/test/API/python_api/block/fn.c @@ -1,4 +1,4 @@ -extern int fn(int a, int b) { +extern int LLDB_DYLIB_EXPORT fn(int a, int b) { if (a < b) { int sum = a + b; return sum; // breakpoint 2 diff --git a/lldb/test/API/python_api/block/main.c b/lldb/test/API/python_api/block/main.c index 8200ecf5bdf4f..7ce04f0b1ebe4 100644 --- a/lldb/test/API/python_api/block/main.c +++ b/lldb/test/API/python_api/block/main.c @@ -1,6 +1,6 @@ #include -extern int fn(int a, int b); +extern LLDB_DYLIB_IMPORT int fn(int a, int b); int main(int argc, char const *argv[]) { int a = 3;