| 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_);\ |