Implements functions defined in Unit-Test.
Unit-Test impl | Implements functions defined in Unit-Test. |
Copyright | This program is free software. |
Files | |
C-kern/ | Header file of Unit-Test. |
C-kern/ | Implementation file Unit-Test impl. |
unittest_t | Holds mutex_t to make it thread-safe. |
static variables | |
s_unittest_singleton | Holds the context for all running unit tests. |
lifetime | |
report | |
logfile | |
writelogfile_unittest | Writes errlog to s_unittest_singleton.log_files_directory + “/” + testname. |
comparelogfile_unittest | Compares stored errlog file with content of current error log. |
execute | |
test |
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 2 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.
© 2011 Jörg Seebohn
Header file of Unit-Test.
Implementation file Unit-Test impl.
struct unittest_t
Holds mutex_t to make it thread-safe.
static variables | |
s_unittest_singleton | Holds the context for all running unit tests. |
lifetime | |
report | |
logfile | |
writelogfile_unittest | Writes errlog to s_unittest_singleton.log_files_directory + “/” + testname. |
comparelogfile_unittest | Compares stored errlog file with content of current error log. |
execute | |
test |
Holds mutex_t to make it thread-safe.
struct unittest_t
Holds the context for all running unit tests.
static unittest_t s_unittest_singleton
Writes errlog to s_unittest_singleton.log_files_directory + “/” + testname.
static int writelogfile_unittest( const char * testname )
Compares stored errlog file with content of current error log.
static int comparelogfile_unittest( const char * testname )