Skip to content

Commit

Permalink
Try to fix tests on Mingw
Browse files Browse the repository at this point in the history
  • Loading branch information
jbytheway authored and misterprimus committed Sep 21, 2019
1 parent 2b0d422 commit 3bb9b30
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/memorial_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ void check_memorial( memorial_logger &m, event_bus &b, const std::string &ref, A
if( !message.empty() && message.front() == ' ' ) {
message.erase( message.begin() );
}
// Remove trailing carriage return, if any
while( !message.empty() && *message.rbegin() == '\r' ) {
message.erase( message.end() - 1 );
}
CHECK( message == ref_lines[i] );
}
}
Expand Down

0 comments on commit 3bb9b30

Please sign in to comment.