[SSSD] [PATCH] server-tests: do not use complex condition in assert

Pavel Březina pbrezina at redhat.com
Fri Jan 9 14:17:58 UTC 2015


If OR is used in assert macro we never know what part of the condition 
was not met from a failure message directly.

I'm seeing a failure in server-tests, because pid number of sssd process
is greater than 0xffff, it is bigger than 100k. Where does this constant 
come from?

[ RUN      ] test_run_as_root_daemon
tmp > 0xFFFF
/home/pbrezina/workspace/sssd/src/tests/cwrap/test_server.c:79: error: 
Failure




More information about the sssd-devel mailing list