[lldb][Test] TestRerunAndExpr.py: explicitly delete a.out before rebuilding it
authorMichael Buch <michaelbuch12@gmail.com>
Thu, 15 Dec 2022 04:01:21 +0000 (04:01 +0000)
committerMichael Buch <michaelbuch12@gmail.com>
Thu, 15 Dec 2022 04:05:39 +0000 (04:05 +0000)
This applies the same fix as in `ad3870d6552305d2d6bd6aa2faca6f0644052d9a`
for `TestRerunAndExpr.py` to this test.

D138724

lldb/test/API/functionalities/rerun_and_expr_dylib/TestRerunAndExprDylib.py

index 93e5862..fb4cc32 100644 (file)
@@ -53,6 +53,9 @@ class TestRerunExprDylib(TestBase):
                 ValueCheck(name='m_val', value='42')
             ])
 
+        # Delete the dylib to force make to rebuild it.
+        remove_file(self.getBuildArtifact(FULL_DYLIB_NAME))
+
         # Re-build libfoo.dylib
         self.build(dictionary={'DYLIB_CXX_SOURCES':'rebuild.cpp',
                                'DYLIB_ONLY':'YES',