Commit cd927a9e authored by Andrey Goder's avatar Andrey Goder Committed by Sara Golemon

fix? AutoTimerTest

Summary: Apparently this test sometimes fails. @Gownta suggests it's because we're
storing temproaries in StringPiece. Change it to store in a std::string, which
should hopefully fix it.

Reviewed By: @Gownta

Differential Revision: D2208643
parent 668192ca
......@@ -22,14 +22,14 @@ using namespace std;
struct StubLogger {
void operator()(StringPiece msg, double sec) {
m = msg;
m = msg.str();
t = sec;
}
static StringPiece m;
static std::string m;
static double t;
};
StringPiece StubLogger::m = "";
std::string StubLogger::m = "";
double StubLogger::t = 0;
struct StubClock {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment