ucx/cx/test.h

changeset 845
f3ab28ed22e5
parent 440
7c4b9cba09ca
child 870
e167cf006213
equal deleted inserted replaced
844:3106d9ca2f9c 845:f3ab28ed22e5
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