[llvm] r188157 - Relax conditions of test added in r188156 to fix it on Windows

Alexey Samsonov samsonov at google.com
Mon Aug 12 02:04:59 PDT 2013


Author: samsonov
Date: Mon Aug 12 04:04:58 2013
New Revision: 188157

URL: http://llvm.org/viewvc/llvm-project?rev=188157&view=rev
Log:
Relax conditions of test added in r188156 to fix it on Windows

Modified:
    llvm/trunk/unittests/Transforms/Utils/SpecialCaseList.cpp

Modified: llvm/trunk/unittests/Transforms/Utils/SpecialCaseList.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Transforms/Utils/SpecialCaseList.cpp?rev=188157&r1=188156&r2=188157&view=diff
==============================================================================
--- llvm/trunk/unittests/Transforms/Utils/SpecialCaseList.cpp (original)
+++ llvm/trunk/unittests/Transforms/Utils/SpecialCaseList.cpp Mon Aug 12 04:04:58 2013
@@ -176,7 +176,7 @@ TEST_F(SpecialCaseListTest, InvalidSpeci
   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) {





More information about the llvm-commits mailing list