[llvm] 257e412 - Update test for windows.
Sterling Augustine via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 11 12:36:08 PST 2020
Author: Sterling Augustine
Date: 2020-02-11T12:35:46-08:00
New Revision: 257e412762e36de278ffe1488ba3c6f609111632
URL: https://github.com/llvm/llvm-project/commit/257e412762e36de278ffe1488ba3c6f609111632
DIFF: https://github.com/llvm/llvm-project/commit/257e412762e36de278ffe1488ba3c6f609111632.diff
LOG: Update test for windows.
Added:
Modified:
llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp b/llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp
index 10a9f95a0c69..b0fdabb433f0 100644
--- a/llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp
+++ b/llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp
@@ -955,13 +955,13 @@ TEST_F(DebugLineBasicFixture, PrintPathsProperly) {
1, CompDir,
DILineInfoSpecifier::FileLineInfoKind::RelativeFilePath,
Result));
- EXPECT_STREQ(Result.c_str(), "b dir/b file");
+ EXPECT_THAT(Result.c_str(), MatchesRegex("b dir.b file"));
EXPECT_TRUE((*ExpectedLineTable)
->Prologue.getFileNameByIndex(
1, CompDir,
DILineInfoSpecifier::FileLineInfoKind::AbsoluteFilePath,
Result));
- EXPECT_STREQ(Result.c_str(), "a dir/b dir/b file");
+ EXPECT_THAT(Result.c_str(), MatchesRegex("a dir.b dir.b file"));
}
} // end anonymous namespace
More information about the llvm-commits
mailing list