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", "Done initializing") + self.runCmd("thread until " + str(ret)) self.expect("frame variable numbers", substrs=['1', '2', '3', '4', '5']) Index: lldb/packages/Python/lldbsuite/test/commands/expression/formatters/main.cpp =================================================================== --- lldb/packages/Python/lldbsuite/test/commands/expression/formatters/main.cpp +++ lldb/packages/Python/lldbsuite/test/commands/expression/formatters/main.cpp @@ -42,7 +42,7 @@ foo1.b.i = 9999; int numbers[5] = {1,2,3,4,5}; - - return 0; - + + return 0; // Done initializing + }