From b4290a5e11e898e5b737f2a8a03e03db7d83d40c Mon Sep 17 00:00:00 2001 From: alessio Date: Fri, 22 Nov 2024 08:32:19 +0100 Subject: [PATCH] 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. --- tests/isc/time_test.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/isc/time_test.c b/tests/isc/time_test.c index 26d2775725..3b5113b844 100644 --- a/tests/isc/time_test.c +++ b/tests/isc/time_test.c @@ -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 */