4 from lldbsuite.test.decorators import *
5 from lldbsuite.test.lldbtest import *
6 from lldbsuite.test import lldbutil
9 class CMTimeDataFormatterTestCase(TestBase):
11 mydir = TestBase.compute_mydir(__file__)
14 def test_nsindexpath_with_run_command(self):
15 """Test formatters for CMTime."""
17 self.runCmd("file " + self.getBuildArtifact("a.out"),
18 CURRENT_EXECUTABLE_SET)
20 line = line_number('main.m', '// break here')
21 lldbutil.run_break_set_by_file_and_line(
22 self, "main.m", line, num_expected_locations=1, loc_exact=True)
24 self.runCmd("run", RUN_SUCCEEDED)
28 STOPPED_DUE_TO_BREAKPOINT,
29 substrs=['stopped', 'stop reason = breakpoint'])
34 '1 10th of a second', 'value = 1', 'timescale = 10',
39 substrs=['10 seconds', 'value = 10', 'timescale = 1', 'epoch = 0'])