Index: lldb/packages/Python/lldbsuite/test/commands/expression/formatters/TestFormatters.py =================================================================== --- lldb/packages/Python/lldbsuite/test/commands/expression/formatters/TestFormatters.py +++ lldb/packages/Python/lldbsuite/test/commands/expression/formatters/TestFormatters.py @@ -231,9 +231,8 @@ 0) == 122, '*a_ptr = 122') - self.runCmd("n") - self.runCmd("n") - self.runCmd("n") + ret = line_number("main.cpp", "return") + self.runCmd("thread until " + str(ret)) self.expect("frame variable numbers", substrs=['1', '2', '3', '4', '5'])