1 2 3 4 5 6 7 8 9 10 11 12 13 14
#define CATCH_CONFIG_MAIN #include "catch.hpp" #include <iostream> #include <thread> #include <string> #include "main.hpp" std::string get_pid() { std::stringstream s; s << std::this_thread::get_id(); return s.str(); }