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

Pavel Reichl preichl at redhat.com
Fri Jan 9 16:25:09 UTC 2015


On 01/09/2015 03:18 PM, Pavel Březina wrote:
> On 01/09/2015 03:17 PM, Pavel Březina wrote:
>> 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
>
> And now with the patch.
>
>
>
> _______________________________________________
> sssd-devel mailing list
> sssd-devel at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/sssd-devel
ACK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20150109/75c69f5b/attachment.html>


More information about the sssd-devel mailing list