tests: investigating catch2
[awesomized/libmemcached] / testing / lib / WaitForExec.hpp
1 #pragma once
2
3 #include "Poll.hpp"
4
5 class WaitForExec {
6 private:
7 Poll poll;
8 int pipes[2];
9
10 public:
11 explicit WaitForExec(Poll &&poll = Poll{0});
12 ~WaitForExec();
13
14 WaitForExec(const WaitForExec &) = delete;
15 WaitForExec(WaitForExec &&) = default;
16
17 bool operator () ();
18 };