]> git.ipfire.org Git - thirdparty/samba.git/commit
torture:charset: use < and > assertions for strcasecmp_m
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Fri, 5 Apr 2024 00:14:38 +0000 (13:14 +1300)
committerJule Anger <janger@samba.org>
Mon, 10 Jun 2024 13:25:16 +0000 (13:25 +0000)
commit5082378df180ea8a59ea55db6a06b765a1fd23cd
tree8732fcbf46ce76f357dba3d685798d3111504636
parent1a45f172070abb7b400574f27d6c0cd49008b0de
torture:charset: use < and > assertions for strcasecmp_m

strcasecmp_m is supposed to return a negative, zero, or positive
number, depending on whether the first argument is less than, equal to,
or greater than the second argument (respectively).

We have been asserting that it returns exactly the difference between
the codepoints in the first character that differs.

This fixes a knownfail on 32 bit.

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>
(cherry picked from commit ac0a8cd92ca4497bfcfad30e2b4d47547b582b92)
lib/util/charset/tests/charset.c
selftest/knownfail-32bit