mirror of
https://github.com/siemens-mobile-hacks/llvm-c166.git
synced 2026-11-28 11:52:25 +00:00
This PR fixes a timing issue that made `TestRerunAndExprDylib` fail with a small probability. The test rebuilds a library; however, the build and the re-build may fall into the same timestamp if the underlying filesystem only has second granularity such that LLDB doesn't reload the rebuilt library for the second execution. The fix consists in artifically aging the library file from the first build, i.e., setting its timestamp 10 seconds into the past. This not only guarantees that LLDB reloads the file but also also that it is rebuilt, so the explicit removing is now unnecessary and removed. This issue exists for at least six months, possible since the tests exists; I was not able to test older versions. However, we have recently seen frequent failures, probably due to some change in our underlying testing infrastructure. Signed-off-by: Ingo Müller <ingomueller@google.com> |
||
|---|---|---|
| .. | ||
| lib.cpp | ||
| main.cpp | ||
| Makefile | ||
| rebuild.cpp | ||
| TestRerunAndExprDylib.py | ||