Bug #4787
libosmocore test suite failures on i386
Start date:
10/09/2020
Due date:
% Done:
80%
Spec Reference:
Description
since last night builds, we see (e.g. https://build.opensuse.org/public/build/network:osmocom:nightly/Debian_9.0/i586/libosmocore/_log):
test suite failure:
[ 391s] +osmo_float_str_to_int("-9223372036854775808", 0) -> rc=0 val=-9223372036854775807 [ 391s] + ERROR: expected rc=-34=-ERANGE [ 391s] + ERROR: expected val=0 [ 391s] 36. testsuite.at:224: 36. utils (testsuite.at:224): FAILED (testsuite.at:228)
Related issues
osmo_float_str_to_int: When using strtoll(), use LLONG_{MAX,MIN}
When we use strtoll(), the return type is "long long" and we cannot
compare against LONG_MAX and LONG_MIN but must compare against LLONG_MAX
and LLONG_MIN.
Change-Id: I9c18ac237b4aacd56639d1faffa6841c8ad7b8da
Closes: OS#4787