Permalink
Browse files

fix some comments

  • Loading branch information...
1 parent 3c99bee commit f665d228eb5d533c145c4c8d073eaab3e8f9fee6 @ssi-appstatus ssi-appstatus committed Mar 21, 2012
Showing with 21 additions and 2 deletions.
  1. +18 −0 ctest.c
  2. +3 −2 ctest.h
View
@@ -1,3 +1,21 @@
+/*
+ CTEST -- A simple unit test framework for C
+ Copyright (C) 2011, by Christopher A. Mosher
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
View
@@ -30,9 +30,10 @@ print error messages for failures, and keep count.
To use the CTEST framework, perform to following
actions:
1. Call ctest_ctx_alloc to allocate a suite context.
- 2. Call the CTEST macro for each unit test to perform.
+ 2. Call the CTEST macro to perform each unit test
+ in the suite.
3. Check the count of failed tests in the suite by
- calling ctest_count_failures.
+ calling ctest_count_fail.
4. Call ctest_ctx_free to free the suite context.
Here is a simple example:

0 comments on commit f665d22

Please sign in to comment.