From cef0d62c976e0edfd8e8e1595168a3ab3ed9c87a Mon Sep 17 00:00:00 2001 From: Timothy Manning Date: Sat, 24 Jul 2021 16:15:13 +1200 Subject: [PATCH] Fixed an issue with the 32 bit YTIME_T test. Signed-off-by: Timothy Manning --- .../unit_tests/64_and_32_bit_time/32_bit/time_32_tests.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/direct/test-framework/unit_tests/64_and_32_bit_time/32_bit/time_32_tests.c b/direct/test-framework/unit_tests/64_and_32_bit_time/32_bit/time_32_tests.c index 8d10d27..9c99242 100644 --- a/direct/test-framework/unit_tests/64_and_32_bit_time/32_bit/time_32_tests.c +++ b/direct/test-framework/unit_tests/64_and_32_bit_time/32_bit/time_32_tests.c @@ -10,10 +10,10 @@ int main() { yaffs_start_up(); - //test that ytime is 64 bits + //test that ytime is 32 bits - if (sizeof(YTIME_T) != 8) { - printf("Error:size of YTIME_T is not 64 bits\n"); + if (sizeof(YTIME_T) != 4) { + printf("Error:size of YTIME_T is %lu, not 32 bits \n", sizeof(YTIME_T)*8); return 1; } -- 2.30.2