]> p2p-next.cs.pub.ro Git - swifty.git/blobdiff - src/raw/test/test.h
raw: Add run_as_child_process function.
[swifty.git] / src / raw / test / test.h
index a830632e7d09e7ef18b6612ee58822c51b8b9deb..fe5c281c5caf81e3261ede50f3d84573e8ea948b 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