diff options
Diffstat (limited to 'tests/gtest_ex.h')
-rw-r--r-- | tests/gtest_ex.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/gtest_ex.h b/tests/gtest_ex.h index 41ee22b..fe1d894 100644 --- a/tests/gtest_ex.h +++ b/tests/gtest_ex.h @@ -16,8 +16,15 @@ #include <gtest/gtest.h> +#include <sys/types.h> +#include <sys/wait.h> + +#include <errno.h> +#include <string.h> +#include <unistd.h> + template<typename F> -void test_forked(F test) { +void test_isolated(F test) { int pid = fork(); ASSERT_NE(-1, pid) << strerror(errno); |