Improve testing framework
Replaced Criterrion with CMock. Added few tests, currently not working properly. Random test upgrades.
This commit is contained in:
1 parent
56c0b7922f
commit
f5ab5f3f27
29 files changed
+140082
-310
No files matched your search
@@ -5,10 +5,19 @@ const char* log_levels[] = {
|
||||
"[TRACE]", "[DEBUG]", "[INFO]", "WARNING", "[ERROR]", "[FATAL]"
|
||||
};
|
||||
|
||||
#ifndef LOGLEVEL
|
||||
#define LOGLEVEL LOGLEVEL_DEBUG
|
||||
#endif
|
||||
|
||||
void _log_log(unsigned int level, const char* file, int line, const char* fmt, ...)
|
||||
{
|
||||
va_list list;
|
||||
|
||||
if (level < LOGLEVEL)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
va_start(list, fmt);
|
||||
fprintf(stdout, "%s %s:%d: ", log_levels[level], file, line);
|
||||
vfprintf(stdout, fmt, list);
|
||||
|
||||
Reference in new issue
Block a user