Skip to content

Commit e5923e0

Browse files
committed
Fix tests sometimes failing
1 parent c644be1 commit e5923e0

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

clang-tools-extra/clangd/unittests/tweaks/RawStringLiteralTests.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,14 @@ TEST_F(RawStringLiteralTest, TestC) {
4040
Context = File;
4141
FileName = "TestTU.c";
4242
ExtraArgs = {"-xc"}; // raw strings are unavailable in C
43-
EXPECT_UNAVAILABLE(R"c(
44-
const char* a = "^f^o^o^\^n^";
45-
)c");
43+
EXPECT_UNAVAILABLE(R"c(const char *a = ^"^f^o^o^\^n^";)c");
4644
}
4745

4846
TEST_F(RawStringLiteralTest, TestCpp98) {
4947
Context = File;
5048
ExtraArgs = {"-std=c++98"}; // raw strings are unavailable
5149
// in versions prior to C++11
52-
EXPECT_UNAVAILABLE(R"cpp(
53-
const char* a = "^f^o^o^\^n^";
54-
)cpp");
50+
EXPECT_UNAVAILABLE(R"cpp(const char *a = ^"^f^o^o^\^n^";)cpp");
5551
}
5652

5753
} // namespace

0 commit comments

Comments
 (0)