mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-27 23:51:56 +00:00
[flang][driver] Make the names of files created in unit tests unique (nfc)
Using files with identical names leads to unexpected failures when tests are run in parallel. This is tricky to reproduce, but has been happening on some buildbots since merging https://reviews.llvm.org/D92854. In that patch I added a unit test with a non-unique test file. This patch fixes that.
This commit is contained in:
parent
5e273b845b
commit
d6abd7317a
@ -18,7 +18,7 @@ using namespace Fortran::frontend;
|
||||
namespace {
|
||||
|
||||
TEST(FrontendAction, PrintPreprocessedInput) {
|
||||
std::string inputFile = "test-file.f";
|
||||
std::string inputFile = "pp-test-file.f";
|
||||
std::error_code ec;
|
||||
|
||||
// 1. Create the input file for the file manager
|
||||
@ -78,7 +78,7 @@ TEST(FrontendAction, PrintPreprocessedInput) {
|
||||
}
|
||||
|
||||
TEST(FrontendAction, ParseSyntaxOnly) {
|
||||
std::string inputFile = "test-file.f";
|
||||
std::string inputFile = "syntax-only-test-file.f";
|
||||
std::error_code ec;
|
||||
|
||||
// 1. Create the input file for the file manager
|
||||
|
Loading…
Reference in New Issue
Block a user