unstick r375477

Revision 375477

Date:
2019/10/22 04:00:37
Author:
lawrence_danna
Revision Log:
fix PythonDataObjectsTest.TestExceptions on windows

Looks like on windows googlemock regexes treat newlines differently
from on darwin. This patch fixes the regex in this test so it
will work on both.

Fixes: https://reviews.llvm.org/D69214
Files:

Legend:

 
Added
 
Removed
 
Modified
  • lldb/trunk/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp

     
    805 805
    806 806 PythonScript foo(script);
    807 807
    808 EXPECT_THAT_EXPECTED(foo(),
    809 llvm::Failed<PythonException>(testing::Property(
    810 &PythonException::ReadBacktrace,
    811 testing::ContainsRegex("line 3, in foo..*"
    812 "line 5, in bar.*"
    813 "line 7, in baz.*"
    814 "ZeroDivisionError"))));
    808 EXPECT_THAT_EXPECTED(
    809 foo(), llvm::Failed<PythonException>(testing::Property(
    810 &PythonException::ReadBacktrace,
    811 testing::AllOf(testing::ContainsRegex("line 3, in foo"),
    812 testing::ContainsRegex("line 5, in bar"),
    813 testing::ContainsRegex("line 7, in baz"),
    814 testing::ContainsRegex("ZeroDivisionError")))));
    815 815
    816 816 static const char script2[] = R"(
    817 817 class MyError(Exception):