1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-28 07:51:19 +01:00

9 Commits

Author SHA1 Message Date
Marian Buschsieweke
b1b942f09b
tests/{core,cpu,drivers}: use SPDX copyright tags 2025-11-19 11:12:02 +01:00
Marian Buschsieweke
2d475b3dcd
tests/core/msg_queue_print: fully initialize msg for sending
On 8-bit and 16-bit platforms `uint32_t` is wider than `void *`, as
pointers are (typically) only 16 bit in size. This causes output like:

    Message queue of thread 2
        size: 8 (avail: 8)
        * 0: sender: 2, type: 0x0000, content: 2701197312 (0)
        * 1: sender: 2, type: 0x0001, content: 2701197313 (0x1)

As seen here, the leading two bytes of `msg.content.value` contain
"random" bits, as those bytes are not explicitly initialized.

This fixes the issue by explicitly initializing the whole `msg_t` via
an initializer list.
2025-11-16 23:10:31 +01:00
Mikolai Gütschow
4767b98c8b
tests/core/msg_queue_print: accept (nil) instead of 0x0+ for all boards 2025-08-25 10:56:41 +02:00
Mikolai Gütschow
ede39c6c45
tests: accept %p printing in uppercase and without leading 0x
the output of the specifier %p is implementation defined, and mpaland-printf gives something different than newlib
2025-08-25 10:40:20 +02:00
Mikolai Gütschow
69c15e1754
boards: make BOARD=native an alias for BOARD=native32 2025-04-01 12:39:06 +02:00
Mikolai Gütschow
e843514510
tests/core/msg_queue_print: test for special cases 2024-11-28 12:49:11 +01:00
Frederik Haxel
5ed0bafc92 examples, tests: Changes for the native64 board
- Adapted build system and test checks for the native boards to include native64
- Added `native64` to the same tests as `native`
2024-02-05 22:02:14 +01:00
Frederik Haxel
7a1c099e7b tests: 64 bit compatibility
Fixed compilation errors. Mostly DEBUG/printf formatting and void pointer casting.

Other changes are:
* net/gnrc_sixlowpan_frag_*: Generalized packet size calculation
* cpu/native_backtrace: Reduced required backtrace size to 3 for 64-bit
* periph/flashpage: Simplified test
* unittests/tests-pktbuf: Generalized alignment
* sys/architecture: Extended test for 64-bit
2024-01-30 09:31:00 +01:00
Alexandre Abadie
cabe02c24d
tests: move core related applications to tests/core/ subdirectory 2023-05-10 15:41:38 +02:00