Closed martong closed 6 years ago
The usage of LLVM lit tests "%T" is dangerous because it may cause race conditions between the individual test cases.
https://llvm.org/docs/TestingGuide.html
%T Directory of %t. Deprecated. Shouldn’t be used, because it can be easily misused and cause race conditions between tests. Use rm -rf %t && mkdir %t instead if a temporary directory is necessary. Example: /home/user/llvm.build/test/MC/ELF/Output
%T Directory of %t. Deprecated. Shouldn’t be used, because it can be easily misused and cause race conditions between tests.
Use rm -rf %t && mkdir %t instead if a temporary directory is necessary.
Example: /home/user/llvm.build/test/MC/ELF/Output
It is possible to use %t directly, instead of %t/ctudir.
%t
%t/ctudir
https://reviews.llvm.org/D55129
The usage of LLVM lit tests "%T" is dangerous because it may cause race conditions between the individual test cases.
https://llvm.org/docs/TestingGuide.html