remove unused test helper function, #6564
This commit is contained in:
parent
899ba4b6f3
commit
c39d90bd60
@ -7,23 +7,6 @@
|
|||||||
#include <boost/algorithm/string.hpp>
|
#include <boost/algorithm/string.hpp>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
|
|
||||||
bool file_contains_string(std::string filename, std::string test)
|
|
||||||
{
|
|
||||||
std::ifstream inp(filename);
|
|
||||||
|
|
||||||
if (inp.is_open())
|
|
||||||
{
|
|
||||||
std::string contents;
|
|
||||||
inp >> contents;
|
|
||||||
|
|
||||||
return (boost::algorithm::contains(contents, test));
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return false; // just fail the boost assert (shouldn't happen)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// utility class to redirect stderr so we can test it
|
// utility class to redirect stderr so we can test it
|
||||||
// inspired by https://stackoverflow.com/questions/5405016
|
// inspired by https://stackoverflow.com/questions/5405016
|
||||||
class redirect_stderr
|
class redirect_stderr
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user