1import lldb 2from lldbsuite.test.decorators import * 3from lldbsuite.test.lldbtest import * 4from lldbsuite.test import lldbutil 5 6class TestCase(TestBase): 7 8 @no_debug_info_test 9 def test_invalid_arg(self): 10 self.expect("target stop-hook disable -1", error=True, 11 startstr="error: invalid stop hook id: \"-1\".") 12 self.expect("target stop-hook disable abcdfx", error=True, 13 startstr="error: invalid stop hook id: \"abcdfx\".") 14