"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/unit/logging_test.c" between
cfengine-3.12.5.tar.gz and cfengine-3.12.6.tar.gz

About: CFEngine is a configuration management system for configuring and maintaining Unix-like computers (using an own high level policy language). Community version. LTS (Long Term Support) release.

logging_test.c  (cfengine-3.12.5):logging_test.c  (cfengine-3.12.6)
skipping to change at line 70 skipping to change at line 70
RemoteSysLog(LOG_EMERG, "Test string"); RemoteSysLog(LOG_EMERG, "Test string");
assert_int_equal(got_address->sa_family, AF_INET); assert_int_equal(got_address->sa_family, AF_INET);
assert_int_equal(ntohl(((struct sockaddr_in *) got_address)->sin_addr.s_addr ), 0x7f000037); assert_int_equal(ntohl(((struct sockaddr_in *) got_address)->sin_addr.s_addr ), 0x7f000037);
} }
#define check_level(str, lvl) \ #define check_level(str, lvl) \
{\ {\
assert_int_equal(LogLevelFromString(str), lvl);\ assert_int_equal(LogLevelFromString(str), lvl);\
assert_true(StringSafeEqual_IgnoreCase(str, LogLevelToString(lvl)));\ assert_true(StringEqual_IgnoreCase(str, LogLevelToString(lvl)));\
} }
static void test_log_level(void) static void test_log_level(void)
{ {
check_level("CRITICAL", LOG_LEVEL_CRIT); check_level("CRITICAL", LOG_LEVEL_CRIT);
check_level("Error", LOG_LEVEL_ERR); check_level("Error", LOG_LEVEL_ERR);
check_level("warning", LOG_LEVEL_WARNING); check_level("warning", LOG_LEVEL_WARNING);
check_level("notice", LOG_LEVEL_NOTICE); check_level("notice", LOG_LEVEL_NOTICE);
check_level("info", LOG_LEVEL_INFO); check_level("info", LOG_LEVEL_INFO);
check_level("verbose", LOG_LEVEL_VERBOSE); check_level("verbose", LOG_LEVEL_VERBOSE);
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)