llvm-c166/llvm/tools/libCASPluginTest
David Spickett dc7baf9d06
[CAS] Account for LLVM_ENABLE_THREADS=OFF in unit tests (#217251)
Added in  1cf7984259 / #213331.

These unit tests fail to build when LLVM_ENABLE_THREADS is OFF:
<...>/libCASPluginTest.cpp:801:25: error:
no member named 'sleep_for' in namespace 'std::this_thread'
801 | std::this_thread::sleep_for(std::chrono::milliseconds(50));
      |                         ^~~~~~~~~

As far as I can tell, we can just not do the sleep when threads are off.
Everything becomes single threaded and the delays are not needed.
2026-08-20 09:45:13 +01:00
..
CMakeLists.txt
libCASPluginTest.cpp [CAS] Account for LLVM_ENABLE_THREADS=OFF in unit tests (#217251) 2026-08-20 09:45:13 +01:00
libCASPluginTest.exports [CAS] Add ObjectStore::getStandaloneMemoryBuffer() (#215360) 2026-08-13 09:30:52 -07:00