[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:
Andrzej Warzynski 2020-12-21 11:09:06 +00:00
parent 5e273b845b
commit d6abd7317a
1 changed files with 2 additions and 2 deletions

View File

@ -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