Summary:
I have no idea why the compiler is gettings its britches in a bunch because a unit test has a predictable output. Really, gcc?!
But whatever, avoiding inlining by putting it in the cpp file solves it.
Test Plan: fbmake runtests_opt
Reviewed By: davejwatson@fb.com
Subscribers: net-systems@, fugalh, exa
FB internal diff:
D1405811
Tasks:
4591823
}
}
+void ManualExecutor::advanceTo(TimePoint const& t) {
+ if (t > now_) {
+ now_ = t;
+ }
+ run();
+}
+
}} // namespace
/// Advance the clock to this absolute time. If t is <= now(),
/// this is a noop.
- void advanceTo(TimePoint const& t) {
- if (t > now_) {
- now_ = t;
- }
- run();
- }
+ void advanceTo(TimePoint const& t);
TimePoint now() override { return now_; }