raw: Add run_as_child_process function.
[swifty.git] / src / raw / test / test.h
index a830632..fe5c281 100644 (file)
@@ -14,6 +14,12 @@ extern "C" {
 #include <stdio.h>
 #include <string.h>
 
+/* Test function type. */
+typedef void (*test_fn)(void);
+
+/* Run test function f in another process. */
+void run_as_child_process(test_fn f);
+
 /*
  * uncommend EXIT_IF_FAIL macro in order to stop test execution
  * at first failed test