"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/unit/mon_processes_test.c" between
cfengine-3.12.6.tar.gz and cfengine-3.12.7.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. Community version. LTS (Long Term Support) release.

mon_processes_test.c  (cfengine-3.12.6):mon_processes_test.c  (cfengine-3.12.7)
skipping to change at line 128 skipping to change at line 128
usr = 3*usr; usr = 3*usr;
rusr = 3*rusr; rusr = 3*rusr;
ousr = 3*ousr; ousr = 3*ousr;
Log(LOG_LEVEL_NOTICE, "Counted %d/3 different users on the process table," Log(LOG_LEVEL_NOTICE, "Counted %d/3 different users on the process table,"
" while CFEngine counted %f/3", usr, cf_this[ob_users]); " while CFEngine counted %f/3", usr, cf_this[ob_users]);
Log(LOG_LEVEL_NOTICE, "This is a non-deterministic test," Log(LOG_LEVEL_NOTICE, "This is a non-deterministic test,"
" the two numbers should be *about* the same since the 'ps'" " the two numbers should be *about* the same since the 'ps'"
" commands run very close to each other"); " commands run very close to each other");
int upper = (int) ((double) usr*1.10); int upper = (int) ((double) usr*1.20);
int lower = (int) ((double) usr*0.90); int lower = (int) ((double) usr*0.80);
assert_in_range((long long) cf_this[ob_users], lower, upper); assert_in_range((long long) cf_this[ob_users], lower, upper);
} }
int main() int main()
{ {
LogSetGlobalLevel(LOG_LEVEL_DEBUG); LogSetGlobalLevel(LOG_LEVEL_DEBUG);
strcpy(CFWORKDIR, "data"); strcpy(CFWORKDIR, "data");
#if defined(__sun) #if defined(__sun)
VSYSTEMHARDCLASS = PLATFORM_CONTEXT_SOLARIS; VSYSTEMHARDCLASS = PLATFORM_CONTEXT_SOLARIS;
 End of changes. 1 change blocks. 
2 lines changed or deleted 2 lines changed or added

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