aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-05-03 18:40:19 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-05-03 18:40:19 +0000
commitd9d0b76f33fe09fc34166d31ba8bcf7fadf0b246 (patch)
treef5b37b829f8a47f415d34d885105f919eb6de42d
parent7c9856deb32130fe8a249020cfe95816a4e77d2f (diff)
downloadllvm-d9d0b76f33fe09fc34166d31ba8bcf7fadf0b246.zip
llvm-d9d0b76f33fe09fc34166d31ba8bcf7fadf0b246.tar.gz
llvm-d9d0b76f33fe09fc34166d31ba8bcf7fadf0b246.tar.bz2
Rename TestStopHook.py to the more appropriate TestStopHookMechanism.py, and update the docstrings.
llvm-svn: 130773
-rw-r--r--lldb/test/stop-hook/TestStopHookMechanism.py (renamed from lldb/test/stop-hook/TestStopHook.py)16
1 files changed, 8 insertions, 8 deletions
diff --git a/lldb/test/stop-hook/TestStopHook.py b/lldb/test/stop-hook/TestStopHookMechanism.py
index b05f25d..7eac12a 100644
--- a/lldb/test/stop-hook/TestStopHook.py
+++ b/lldb/test/stop-hook/TestStopHookMechanism.py
@@ -1,5 +1,5 @@
"""
-Test lldb target stop-hook command.
+Test lldb target stop-hook mechanism to see whether it fires off correctly .
"""
import os
@@ -8,20 +8,20 @@ import lldb
import pexpect
from lldbtest import *
-class StopHookTestCase(TestBase):
+class StopHookMechanismTestCase(TestBase):
mydir = "stop-hook"
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
def test_with_dsym(self):
- """Test a sequence of target add-hook commands."""
+ """Test the stop-hook mechanism."""
self.buildDsym()
- self.stop_hook_command_sequence()
+ self.stop_hook_firing()
def test_with_dwarf(self):
- """Test a sequence of target add-hook commands."""
+ """Test the stop-hook mechanism."""
self.buildDwarf()
- self.stop_hook_command_sequence()
+ self.stop_hook_firing()
def setUp(self):
# Call super's setUp().
@@ -31,8 +31,8 @@ class StopHookTestCase(TestBase):
self.endl = line_number('main.cpp', '// End of the line range for which stop-hook is to be run.')
self.line = line_number('main.cpp', '// Another breakpoint which is outside of the stop-hook range.')
- def stop_hook_command_sequence(self):
- """Test a sequence of target stop-hook commands."""
+ def stop_hook_firing(self):
+ """Test the stop-hook mechanism."""
exe = os.path.join(os.getcwd(), "a.out")
prompt = "(lldb) "
add_prompt = "Enter your stop hook command(s). Type 'DONE' to end.\r\n> "