zephyr/tests/net
Joakim Andersson 0484c5af4d tests: net: buf: Fix byteorder test writing beyond buffer
Fix byteorder test writing past the data pointer. This would otherwise
have been caught by the assert, but net buf asserts were not enabled in
the test. Reset the buffer between different tests to re-use the same
16-byte buffer.

Turning on asserts gives:

starting test - net_buf_test_byte_order
ASSERTION FAIL [net_buf_simple_tailroom(buf) >= len] @
	ZEPHYR_BASE/subsys/net/buf.c:775
E: r0/a1:  0x00000004  r1/a2:  0x00000307  r2/a3:  0x00000000
E: r3/a4:  0x00006d79 r12/ip:  0x00000000 r14/lr:  0x000028ad
E:  xpsr:  0x61000000
E: Faulting instruction address (r15/pc): 0x000050b0
E: >>> ZEPHYR FATAL ERROR 4: Kernel panic on CPU 0

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
2020-01-13 13:59:55 +01:00
..
6lo
all tests: all: Remove assignment to promptless NET_GPTP_CLOCK_ACCURACY 2020-01-13 13:51:16 +01:00
arp
buf tests: net: buf: Fix byteorder test writing beyond buffer 2020-01-13 13:59:55 +01:00
checksum_offload
context
dhcpv4
ethernet_mgmt
hostname
icmpv4 tests: net: icmpv4: Test NULL ptr in proper time 2020-01-07 19:27:11 +02:00
icmpv6
ieee802154
iface
ip-addr
ipv6 net: core: Drop NET_ASSERT_INFO() macro 2020-01-08 14:10:21 +02:00
ipv6_fragment tests: net: ipv6: Fix net_buf asserts in fragment unittest 2020-01-13 13:59:55 +01:00
lib samples & tests: Correct main() type 2019-12-16 11:27:56 +01:00
mgmt
mld
neighbor
net_pkt
ppp/driver include: Fix use of <crc.h> -> <sys/crc.h> 2019-12-10 08:39:37 -05:00
promiscuous
ptp/clock
route
shell
socket tests: net: poll: Fix the test name and add proper tag 2020-01-03 11:26:46 -08:00
tcp
traffic_class
trickle
tx_timestamp
udp
utils
vlan