diff options
-rw-r--r-- | test/style/resource_loading.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/style/resource_loading.cpp b/test/style/resource_loading.cpp index 85fc6fc6da..6c5eb51bd4 100644 --- a/test/style/resource_loading.cpp +++ b/test/style/resource_loading.cpp @@ -147,7 +147,7 @@ TEST_P(ResourceLoading, Success) { TEST_P(ResourceLoading, RequestFail) { std::stringstream message; - message << "Failed to load \\[test/fixtures/resources/" << GetParam() << "]: Failed by the test case"; + message << "Failed to load \\[test\\/fixtures\\/resources\\/" << GetParam() << "\\]\\: Failed by the test case"; runTestCase(MockFileSource::RequestFail, GetParam(), message.str()); } @@ -159,13 +159,13 @@ TEST_P(ResourceLoading, RequestWithCorruptedData) { message << "Failed to parse "; if (param == "vector.pbf") { - message << "\\[15/1638./1638.]: pbf unknown field type exception"; + message << "\\[15\\/1638(3|4)\\/1638(3|4)\\]\\: pbf unknown field type exception"; } else { - message << "\\[test/fixtures/resources/" << param << "]"; + message << "\\[test\\/fixtures\\/resources\\/" << param << "\\]"; } if (param.find("json") != std::string::npos) { - message << ": 0 - Expect either an object or array at root"; + message << "\\: 0 - Expect either an object or array at root"; } runTestCase(MockFileSource::RequestWithCorruptedData, GetParam(), message.str()); |