raw: Add socket_manager.c symlink.
[swifty.git] / src / raw / test / test.h
index 1de3cb1..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
@@ -54,6 +60,10 @@ extern "C" {
                fflush(stdout);                                 \
        } while (0)
 
+#define start_suite()                  \
+       do {                                            \
+                       printf("\n==== Starting %s ====\n", __FUNCTION__); \
+       } while (0)
 #ifdef __cplusplus
 }
 #endif