Adjust regex expressions

This commit is contained in:
Alexey Rybalchenko
2020-07-16 10:11:31 +02:00
parent c8d59d11fb
commit b30cacab12
4 changed files with 46 additions and 21 deletions

View File

@@ -46,7 +46,7 @@ int main()
throw runtime_error(ToStr("File sink severity (", Logger::GetFileSeverity(), ") does not match the expected one (", Severity::warn, ")"));
}
CheckOutput("^\\[FATAL] fatal\n$", [](){
CheckOutput("^\\[FATAL\\] fatal\n$", [](){
LOG(state) << "state";
LOG(warn) << "warning";
LOG(error) << "error";
@@ -103,7 +103,7 @@ int main()
throw runtime_error("Did not detect a severity request from a non-existent sink");
}
CheckOutput("^CustomSink warning\nCustomSink error\nCustomSink fatal\n\\[FATAL] fatal\n$", [](){
CheckOutput("^CustomSink warning\nCustomSink error\nCustomSink fatal\n\\[FATAL\\] fatal\n$", [](){
LOG(state) << "state";
LOG(warn) << "warning";
LOG(error) << "error";