diff --git a/lldb/test/API/functionalities/rerun_and_expr/TestRerunAndExpr.py b/lldb/test/API/functionalities/rerun_and_expr/TestRerunAndExpr.py --- a/lldb/test/API/functionalities/rerun_and_expr/TestRerunAndExpr.py +++ b/lldb/test/API/functionalities/rerun_and_expr/TestRerunAndExpr.py @@ -41,6 +41,8 @@ ValueCheck(name='m_val', value='42') ]) + # Force make to rebuild the executable by deleting it. + remove_file(exe) self.build(dictionary={'CXX_SOURCES':'rebuild.cpp', 'EXE':'a.out'}) # Rerun program within the same target