Some MSVC fixes
This commit is contained in:
parent
cb96a5fc0a
commit
4778c28898
@ -22,12 +22,12 @@ public:
|
||||
std::cerr.rdbuf(_oldBuffer);
|
||||
}
|
||||
|
||||
std::string stderr() const {
|
||||
std::string get_stderr() const {
|
||||
return _buffer.str();
|
||||
}
|
||||
|
||||
void EXPECT_MATCHES(const std::string ®ex) {
|
||||
EXPECT_THAT(stderr(), testing::MatchesRegex(".*" + regex + ".*"));
|
||||
EXPECT_THAT(get_stderr(), testing::MatchesRegex(".*" + regex + ".*"));
|
||||
}
|
||||
|
||||
private:
|
||||
|
@ -11,7 +11,7 @@ namespace bf = boost::filesystem;
|
||||
|
||||
// This is needed for google test to work with boost::optional<boost::filesystem::path>
|
||||
namespace boost {
|
||||
template<> ostream& operator<< <char, std::char_traits<char>, bf::path>(ostream &stream, const optional<bf::path> &path) {
|
||||
template<> inline ostream& operator<< <char, std::char_traits<char>, bf::path>(ostream &stream, const optional<bf::path> &path) {
|
||||
if (path == none) {
|
||||
return stream << "none";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user