diff options
author | Serge Pavlov <sepavloff@gmail.com> | 2022-11-03 12:26:49 +0700 |
---|---|---|
committer | Serge Pavlov <sepavloff@gmail.com> | 2022-11-03 14:49:58 +0700 |
commit | fdab9f1203eea48a7b8e4c55c7ceafc54653797c (patch) | |
tree | 19c4723556d27ef899b840e22977823d0b675be6 /clang/unittests/Driver/ToolChainTest.cpp | |
parent | a20112a74cb34fa967d10e07185167cbc2906c0d (diff) | |
download | llvm-fdab9f1203eea48a7b8e4c55c7ceafc54653797c.zip llvm-fdab9f1203eea48a7b8e4c55c7ceafc54653797c.tar.gz llvm-fdab9f1203eea48a7b8e4c55c7ceafc54653797c.tar.bz2 |
[Clang] Check for response file existence prior to check for recursion
As now errors in file operation are handled, check for file existence
must be done prior to check for recursion, otherwise reported errors are
misleading.
Differential Revision: https://reviews.llvm.org/D136090
Diffstat (limited to 'clang/unittests/Driver/ToolChainTest.cpp')
-rw-r--r-- | clang/unittests/Driver/ToolChainTest.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/unittests/Driver/ToolChainTest.cpp b/clang/unittests/Driver/ToolChainTest.cpp index b143cd6..b45bab0 100644 --- a/clang/unittests/Driver/ToolChainTest.cpp +++ b/clang/unittests/Driver/ToolChainTest.cpp @@ -596,9 +596,10 @@ TEST(ToolChainTest, ConfigInexistentInclude) { ASSERT_TRUE(C); ASSERT_TRUE(C->containsError()); EXPECT_EQ(1U, DiagConsumer->Errors.size()); - EXPECT_STREQ("cannot read configuration file '" USERCONFIG - "': cannot not open file '" UNEXISTENT "'", - DiagConsumer->Errors[0].c_str()); + EXPECT_STRCASEEQ("cannot read configuration file '" USERCONFIG + "': cannot not open file '" UNEXISTENT + "': no such file or directory", + DiagConsumer->Errors[0].c_str()); } #undef USERCONFIG |