================
@@ -0,0 +1,27 @@
+import os
+import lldb
+from lldbsuite.test.decorators import *
+from lldbsuite.test.lldbtest import *
+
+
+class TestCase(TestBase):
+ NO_DEBUG_INFO_TESTCASE = True
+
+ def test(self):
+ """
+ Check that a Python command, which raises an unhandled exception, has
+ its status set to failed.
+ """
+ command_path = os.path.join(self.getSourceDir(), "throw_command.py")
+ self.runCmd(f"command script import {command_path}")
+
+ with open(os.devnull, "w") as devnull:
+ self.dbg.SetErrorFileHandle(devnull, False)
----------------
kastiglione wrote:
A few tests do reset do reset the file handle (however some tests do not). I'll
add a reset here too.
https://github.com/llvm/llvm-project/pull/113996
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits