]> git.ipfire.org Git - thirdparty/samba.git/commit
lib/torture: add assert_int_{less,greater} macros
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Fri, 5 Apr 2024 01:22:11 +0000 (14:22 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 10 Apr 2024 22:56:33 +0000 (22:56 +0000)
commit6159b098cf35a8043682bfd4c4ea17ef0da6e8ee
treea1dd581c52614eeb10896d4f669c5e80844a9e13
parent3414a894ad6640fa8e282d650b1cc5319991545f
lib/torture: add assert_int_{less,greater} macros

In some situations, like comparison functions for qsort, we don't care
about the actual value, just whethger it was greater or less than
zero.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15625

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/torture/torture.h