Relax conditions of test added in r188156 to fix it on Windows
authorAlexey Samsonov <samsonov@google.com>
Mon, 12 Aug 2013 09:04:58 +0000 (09:04 +0000)
committerAlexey Samsonov <samsonov@google.com>
Mon, 12 Aug 2013 09:04:58 +0000 (09:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188157 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/Transforms/Utils/SpecialCaseList.cpp

index aee412dcb5b7b900aa577b5ae4001087db85860f..42900b79a261baf76470787d576015c337974169 100644 (file)
@@ -176,7 +176,7 @@ TEST_F(SpecialCaseListTest, InvalidSpecialCaseList) {
   EXPECT_EQ("Malformed regex in line 2: 'fun(a': parentheses not balanced",
             Error);
   EXPECT_EQ(0, SpecialCaseList::create("unexisting", Error));
-  EXPECT_EQ("Can't open file 'unexisting': No such file or directory", Error);
+  EXPECT_EQ(0U, Error.find("Can't open file 'unexisting':"));
 }
 
 TEST_F(SpecialCaseListTest, EmptySpecialCaseList) {