src/cx/test.h

changeset 1424
563033aa998c
parent 1098
4f6346a7dd78
equal deleted inserted replaced
1423:9a72258446cd 1424:563033aa998c
54 * } 54 * }
55 * // cleanup of memory here 55 * // cleanup of memory here
56 * } 56 * }
57 * </code> 57 * </code>
58 * 58 *
59 * @attention Do not call own functions within a test, that use 59 * @attention Do not call own functions within a test that use
60 * CX_TEST_ASSERT() macros and are not defined by using CX_TEST_SUBROUTINE(). 60 * CX_TEST_ASSERT() macros and are not defined by using CX_TEST_SUBROUTINE().
61 * 61 *
62 * @author Mike Becker 62 * @author Mike Becker
63 * @author Olaf Wintermann 63 * @author Olaf Wintermann
64 * 64 *
169 } 169 }
170 170
171 /** 171 /**
172 * Registers a test function with the specified test suite. 172 * Registers a test function with the specified test suite.
173 * 173 *
174 * @param suite the suite, the test function shall be added to 174 * @param suite the suite the test function shall be added to
175 * @param test the test function to register 175 * @param test the test function to register
176 * @retval zero success 176 * @retval zero success
177 * @retval non-zero failure 177 * @retval non-zero failure
178 */ 178 */
179 cx_attr_nonnull 179 cx_attr_nonnull
261 * } 261 * }
262 * // tear down code 262 * // tear down code
263 * } 263 * }
264 * @endcode 264 * @endcode
265 * 265 *
266 * @attention Any CX_TEST_ASSERT() calls must be performed in scope of 266 * @attention Any CX_TEST_ASSERT() calls must be performed in the scope of
267 * #CX_TEST_DO. 267 * #CX_TEST_DO.
268 */ 268 */
269 #define CX_TEST_DO _writefnc_("Running ", 1, 8, _output_);\ 269 #define CX_TEST_DO _writefnc_("Running ", 1, 8, _output_);\
270 _writefnc_(__FUNCTION__, 1, strlen(__FUNCTION__), _output_);\ 270 _writefnc_(__FUNCTION__, 1, strlen(__FUNCTION__), _output_);\
271 _writefnc_("... ", 1, 4, _output_);\ 271 _writefnc_("... ", 1, 4, _output_);\

mercurial