Test is using "next" commands to make progress in the process. D115137
added an additional statement to the program, without adding a command
to step over it. This only seemed to matter for the libc++ flavour of
the test, possibly because libstdc++ list is "empty" in its
uninitialized state.
Since moving with step commands is a treacherous, this patch adds a
run-to-breakpoint command to the test. It only does this for the
affected step, but one may consider doing it elsewhere too.
self.runCmd("type format delete int")
- self.runCmd("n")
+ lldbutil.run_break_set_by_file_and_line(self, "main.cpp",
+ self.optional_line)
+ self.runCmd("continue")
self.expect("frame variable text_list",
substrs=['size=0',
@add_test_categories(["libc++"])
def test_ptr_and_ref_libcpp(self):
- self.do_test_ptr_and_ref(USE_LIBCPP)
\ No newline at end of file
+ self.do_test_ptr_and_ref(USE_LIBCPP)