[all-commits] [llvm/llvm-project] ef7ef3: [lldb][test] Speed up TestGlobalModuleCache.py (#2...
Raphael Isemann via All-commits
all-commits at lists.llvm.org
Mon Jun 8 02:41:34 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ef7ef3663f13b54642f0e09935926ae9d74258ba
https://github.com/llvm/llvm-project/commit/ef7ef3663f13b54642f0e09935926ae9d74258ba
Author: Raphael Isemann <rise at apple.com>
Date: 2026-06-08 (Mon, 08 Jun 2026)
Changed paths:
M lldb/test/API/python_api/global_module_cache/TestGlobalModuleCache.py
M lldb/test/API/python_api/global_module_cache/one-print.c
M lldb/test/API/python_api/global_module_cache/two-print.c
Log Message:
-----------
[lldb][test] Speed up TestGlobalModuleCache.py (#201561)
This patch reduces the runtime of TestGlobalModuleCache from 27s to
3-4s. There are three reasons for why the old test was slow:
* We did a sleep for 2s to ensure the source code file had a newer time
stamp and Make would rebuild the project. Instead, we now just age all
times on disk by 10s into the past to do the same thing. I'm not sure
how many other tests need to do this, but introducing a utility method
for forced in-place rebuild would be a good follow up.
* We additionally slept even for the first initial build, which wasn't
needed as there is nothing to rebuild.
* I removed some of the system includes in the source files which are
also not needed.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list