summaryrefslogtreecommitdiffstats
path: root/lldb/test/functionalities/breakpoint/cpp_exception/TestCPPExceptionBreakpoint.py
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-10-28 17:43:26 +0000
committerZachary Turner <zturner@google.com>2015-10-28 17:43:26 +0000
commitc432c8f856e0bd84de980a9d9bb2d31b06fa95b1 (patch)
tree4efa528e074a6e2df782345e4cd97f5d85d038c4 /lldb/test/functionalities/breakpoint/cpp_exception/TestCPPExceptionBreakpoint.py
parenta8a3bd210086b50242903ed95048fe5e53897878 (diff)
downloadbcm5719-llvm-c432c8f856e0bd84de980a9d9bb2d31b06fa95b1.tar.gz
bcm5719-llvm-c432c8f856e0bd84de980a9d9bb2d31b06fa95b1.zip
Move lldb/test to lldb/packages/Python/lldbsuite/test.
This is the conclusion of an effort to get LLDB's Python code structured into a bona-fide Python package. This has a number of benefits, but most notably the ability to more easily share Python code between different but related pieces of LLDB's Python infrastructure (for example, `scripts` can now share code with `test`). llvm-svn: 251532
Diffstat (limited to 'lldb/test/functionalities/breakpoint/cpp_exception/TestCPPExceptionBreakpoint.py')
-rw-r--r--lldb/test/functionalities/breakpoint/cpp_exception/TestCPPExceptionBreakpoint.py47
1 files changed, 0 insertions, 47 deletions
diff --git a/lldb/test/functionalities/breakpoint/cpp_exception/TestCPPExceptionBreakpoint.py b/lldb/test/functionalities/breakpoint/cpp_exception/TestCPPExceptionBreakpoint.py
deleted file mode 100644
index ede32f58ed1..00000000000
--- a/lldb/test/functionalities/breakpoint/cpp_exception/TestCPPExceptionBreakpoint.py
+++ /dev/null
@@ -1,47 +0,0 @@
-"""
-Test that you can set breakpoint and hit the C++ language exception breakpoint
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os
-import re
-import lldb, lldbutil
-import sys
-from lldbtest import *
-
-class TestCPPExceptionBreakpoint (TestBase):
-
- mydir = TestBase.compute_mydir(__file__)
- my_var = 10
-
- @add_test_categories(['pyapi'])
- @expectedFailureWindows("llvm.org/pr24538") # clang-cl does not support throw or catch
- def test_cpp_exception_breakpoint(self):
- """Test setting and hitting the C++ exception breakpoint."""
- self.build()
- self.do_cpp_exception_bkpt ()
-
- def setUp (self):
- TestBase.setUp(self)
- self.main_source = "main.c"
- self.main_source_spec = lldb.SBFileSpec(self.main_source)
-
-
- def do_cpp_exception_bkpt (self):
- exe = os.path.join(os.getcwd(), "a.out")
- error = lldb.SBError()
-
- self.target = self.dbg.CreateTarget(exe)
- self.assertTrue(self.target, VALID_TARGET)
-
- exception_bkpt = self.target.BreakpointCreateForException(lldb.eLanguageTypeC_plus_plus, False, True)
- self.assertTrue (exception_bkpt.IsValid(), "Created exception breakpoint.")
-
- process = self.target.LaunchSimple (None, None, self.get_process_working_directory())
- self.assertTrue(process, PROCESS_IS_VALID)
-
- thread_list = lldbutil.get_threads_stopped_at_breakpoint (process, exception_bkpt)
- self.assertTrue (len(thread_list) == 1, "One thread stopped at the exception breakpoint.")
OpenPOWER on IntegriCloud