zephyr/tests
Robert Lubos 30c8702b05 tests: net: iface: Fix interface context misuse
The iface test suite uses two different interface types with two
different context types and iid tests mixed up the two. It attempted
to create a mac address for Ethernet interface (which uses
struct eth_fake_context), however the net_iface_get_mac() function
only works with Dummy interface context (struct net_if_test). In
result the Ethernet interface context was corrupted (mac address
overwritten the promisc_mode flag).

Fix this by extracting mac generation code into a common function, and
use it in the Ethernet iface initialization phase instead of directly in
the test.

This was reported by UBSAN:
  tests/net/iface/src/main.c:239:34: runtime error: load of value 11,
  which is not a valid value for type '_Bool'

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-07-04 13:16:32 -05:00
..
application_development tests: vector_table_relocation: fix a mis-use of SRAM_SIZE 2025-07-04 13:06:13 -05:00
arch tests/arch/rx: Remove unused variable 'events' 2025-06-26 14:07:03 +02:00
benchmarks arch: nios2: remove arch 2025-05-15 20:01:05 -04:00
bluetooth tests: Bluetooth: Tester: VCP BSIM test 2025-07-01 10:54:09 -10:00
boards tests: samples: Extend support for nRF54LM20A 2025-06-27 18:26:57 -05:00
boot tests: boot: add Espressif boards to MCUboot test case 2025-07-01 11:12:25 -10:00
bsim tests: bsim: add early disconnect tests for iso and l2cap 2025-07-03 11:59:02 -05:00
cmake cmake: yaml: improve escaping of strings with backslashes and quotes 2025-04-10 10:11:47 +02:00
crypto drivers; crypto: Remove TinyCrypt shim 2025-05-23 17:41:06 -04:00
ctest/base
drivers tests/drivers display_read_write: Enable for native_sim//64 2025-07-04 13:06:47 -05:00
integration/kernel tests: kernel: set timeslice size to 0 in tests that do not exercise it 2025-05-16 22:55:49 +02:00
kconfig tests: kconfig: functions: add tests for dt_compat_enabled_num 2025-06-27 10:07:01 -05:00
kernel tests: kernel: gen_isr_table: Don't use IRQ1 if already used 2025-07-02 17:58:08 -05:00
lib tests: lib: net_buf: add tests for net_buf_linearize() 2025-06-26 11:01:49 -05:00
misc tests: misc: Fixing expected output on check_init_priorities test 2025-06-27 14:13:58 +02:00
modules tests: do not use "sanity" word 2025-06-25 16:00:10 -10:00
net tests: net: iface: Fix interface context misuse 2025-07-04 13:16:32 -05:00
posix posix: fnmatch: fix bugs in fnmatch(), see issue #55186 2025-06-09 17:05:40 -05:00
robot tests: robot: renode: Use precise pause for UART keywords 2025-04-16 17:07:05 +02:00
subsys tests: samples: Extend support for nRF54LM20A 2025-06-27 18:26:57 -05:00
unit tests: unit: util: increase coverage of utf-8 utils 2025-06-17 16:09:06 +02:00
ztest tests: error_hook: Workaround for RX architecture 2025-06-26 14:07:03 +02:00
test_config_ci.yaml
test_config.yaml
tests.dox tests: kernel/arch: various doxygen fixes 2025-04-22 14:03:29 +02:00