Add a small artificial delay in replay mode before exiting to ensure
that all asynchronous events have completed. This should reduce the
level of replay flakiness on some of the slower bots.
#include "lldb/Utility/ReproducerInstrumentation.h"
#include "lldb/Utility/Reproducer.h"
+#include <thread>
#include <stdio.h>
#include <stdlib.h>
GetReplayer(id)->operator()(deserializer);
}
+ // Add a small artificial delay to ensure that all asynchronous events have
+ // completed before we exit.
+ std::this_thread::sleep_for (std::chrono::milliseconds(100));
+
return true;
}