[Lldb-commits] [lldb] 21be357 - [LLDB] Skip python exception unit test on AArch64/Windows
Muhammad Omair Javaid via lldb-commits
lldb-commits at lists.llvm.org
Tue Jan 3 06:44:01 PST 2023
Author: Muhammad Omair Javaid
Date: 2023-01-03T18:42:43+04:00
New Revision: 21be357873c0325495c7f6599259579735f54f3e
URL: https://github.com/llvm/llvm-project/commit/21be357873c0325495c7f6599259579735f54f3e
DIFF: https://github.com/llvm/llvm-project/commit/21be357873c0325495c7f6599259579735f54f3e.diff
LOG: [LLDB] Skip python exception unit test on AArch64/Windows
This patch marks python exception test as skipped for AArch64/Windows
platform. This is temporary to make LLDB WoA buildbot happy until a proper
fix is found.
Added:
Modified:
lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp
Removed:
################################################################################
diff --git a/lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp b/lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp
index 8dd55a5c6a611..2bf713e085760 100644
--- a/lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp
+++ b/lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp
@@ -788,6 +788,8 @@ main = foo
testing::ContainsRegex("line 7, in baz"),
testing::ContainsRegex("ZeroDivisionError")))));
+#if !((defined(_WIN32) || defined(_WIN64)) && (defined(__aarch64__) || defined(_M_ARM64)))
+
static const char script2[] = R"(
class MyError(Exception):
def __str__(self):
@@ -804,6 +806,8 @@ def main():
llvm::Failed<PythonException>(testing::Property(
&PythonException::ReadBacktrace,
testing::ContainsRegex("unprintable MyError"))));
+
+#endif
}
TEST_F(PythonDataObjectsTest, TestRun) {
More information about the lldb-commits
mailing list