153 |
153 |
154 return suite; |
154 return suite; |
155 } |
155 } |
156 |
156 |
157 /** |
157 /** |
158 * Destroys a test suite. |
158 * Deallocates a test suite. |
159 * @param suite the test suite to destroy |
159 * |
|
160 * @param suite the test suite to free |
160 */ |
161 */ |
161 static inline void cx_test_suite_free(CxTestSuite* suite) { |
162 static inline void cx_test_suite_free(CxTestSuite* suite) { |
162 if (suite == NULL) return; |
163 if (suite == NULL) return; |
163 CxTestSet *l = suite->tests; |
164 CxTestSet *l = suite->tests; |
164 while (l != NULL) { |
165 while (l != NULL) { |