2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +00:00

Fix alpine build by removing LargestIntegralType in time_test

Avoids using functions that require LargestIntegralType arguments in
time_test to resolve import issues on Alpine Linux. Using size_t instead
wasn't an option due to compatibility issues with 32-bit architectures.
This commit is contained in:
alessio
2024-11-22 08:32:19 +01:00
parent 2c1fb7e5eb
commit b4290a5e11

View File

@@ -280,8 +280,7 @@ ISC_RUN_TEST_IMPL(isc_time_formatISO8601TZms_test) {
assert_int_equal(buf[16], ':');
assert_int_equal(buf[19], '.');
LargestIntegralType plus_minus[2] = { '+', '-' };
assert_in_set(buf[23], plus_minus, sizeof(plus_minus));
assert_true((buf[23] == '+') || (buf[23] == '-'));
assert_int_equal(buf[26], ':');
/* check time conversion correctness */