src/cx/test.h

changeset 959
0e1bf3c199bf
parent 890
54565fd74e74
equal deleted inserted replaced
958:c9033d30a9f6 959:0e1bf3c199bf
65 */ 65 */
66 66
67 #ifndef UCX_TEST_H 67 #ifndef UCX_TEST_H
68 #define UCX_TEST_H 68 #define UCX_TEST_H
69 69
70 #include <stdlib.h> 70 #include "common.h"
71
71 #include <stdio.h> 72 #include <stdio.h>
72 #include <string.h> 73 #include <string.h>
73 #include <setjmp.h> 74 #include <setjmp.h>
74 75
75 #ifdef __cplusplus 76 #ifdef __cplusplus
88 89
89 // 90 //
90 #if !defined(__clang__) && __GNUC__ > 3 91 #if !defined(__clang__) && __GNUC__ > 3
91 #pragma GCC diagnostic ignored "-Wclobbered" 92 #pragma GCC diagnostic ignored "-Wclobbered"
92 #endif 93 #endif
93
94 #ifndef UCX_COMMON_H
95 /**
96 * Function pointer compatible with fwrite-like functions.
97 */
98 typedef size_t (*cx_write_func)(
99 const void *,
100 size_t,
101 size_t,
102 void *
103 );
104 #endif // UCX_COMMON_H
105 94
106 /** Type for the CxTestSuite. */ 95 /** Type for the CxTestSuite. */
107 typedef struct CxTestSuite CxTestSuite; 96 typedef struct CxTestSuite CxTestSuite;
108 97
109 /** Pointer to a test function. */ 98 /** Pointer to a test function. */

mercurial