From 48fdcfd9926bb808c2791eb58873b814d68f39b5 Mon Sep 17 00:00:00 2001 From: Peter Mitsis Date: Tue, 16 Apr 2024 13:04:07 -0400 Subject: [PATCH] tests: Update iterable sections test Updates the test_ram/test_rom structures to use a 'long' instead of an 'int' so that the structure sizes will be 4-bytes on 32-bit platforms and 8-bytes on 64-bit platforms. Signed-off-by: Peter Mitsis --- tests/misc/iterable_sections/src/main.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/misc/iterable_sections/src/main.c b/tests/misc/iterable_sections/src/main.c index a2dde51bd23..1feed8319b2 100644 --- a/tests/misc/iterable_sections/src/main.c +++ b/tests/misc/iterable_sections/src/main.c @@ -8,15 +8,15 @@ #include struct test_ram { - int i; + long i; }; struct test_ram_named { - int i; + long i; }; struct test_ram_numeric { - int i; + long i; }; #define CHECK_BIT 0x80 @@ -105,15 +105,15 @@ ZTEST(iterable_sections, test_ram) } struct test_rom { - int i; + long i; }; struct test_rom_named { - int i; + long i; }; struct test_rom_numeric { - int i; + long i; }; /* declare in random order to check that the linker is sorting by name */