From: Alexey Samsonov Date: Mon, 12 Aug 2013 09:04:58 +0000 (+0000) Subject: Relax conditions of test added in r188156 to fix it on Windows X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=35f4d41471f73a186e8036f10b3d6071aa3b43ec;p=oota-llvm.git Relax conditions of test added in r188156 to fix it on Windows git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188157 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/Transforms/Utils/SpecialCaseList.cpp b/unittests/Transforms/Utils/SpecialCaseList.cpp index aee412dcb5b..42900b79a26 100644 --- a/unittests/Transforms/Utils/SpecialCaseList.cpp +++ b/unittests/Transforms/Utils/SpecialCaseList.cpp @@ -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) {