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 <peter.mitsis@intel.com>
This commit is contained in:
parent
0b076a93ca
commit
48fdcfd992
@ -8,15 +8,15 @@
|
||||
#include <zephyr/sys/iterable_sections.h>
|
||||
|
||||
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 */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user