Test case `test_set_bulk` and `test_get_set` test the LwM2m getter and setter function by - init a buffer with some value - calling lwm2m_set_... with buffer as parameter - calling lwm2_get_... by letting `get` write-back into the same buffer(!) - compare the buffer with the init value That implementation can't recognize a no-operation getter function. This change adds some C macro magic for both test cases where an `out` buffer for setter and an `in` buffer for getter functions exists. The buffers are checked before use for inequality to avoid any unexpected pass. Signed-off-by: Stefan Schwendeler <Stefan.Schwendeler@husqvarnagroup.com> |
||
|---|---|---|
| .. | ||
| 6lo | ||
| all | ||
| arp | ||
| bridge | ||
| checksum_offload | ||
| conn_mgr_conn | ||
| conn_mgr_monitor | ||
| conn_mgr_nsos | ||
| context | ||
| dhcpv4 | ||
| dhcpv6 | ||
| ethernet_mgmt | ||
| hostname | ||
| icmp | ||
| icmpv4 | ||
| icmpv6 | ||
| ieee802154 | ||
| iface | ||
| igmp | ||
| ip-addr | ||
| ipv4_fragment | ||
| ipv6 | ||
| ipv6_fragment | ||
| lib | ||
| mgmt | ||
| mld | ||
| mocks | ||
| neighbor | ||
| net_pkt | ||
| npf | ||
| offloaded_netdev | ||
| pm | ||
| pmtu | ||
| ppp/driver | ||
| promiscuous | ||
| ptp/clock | ||
| route | ||
| route_mcast | ||
| shell | ||
| socket | ||
| tcp | ||
| traffic_class | ||
| trickle | ||
| tx_timestamp | ||
| udp | ||
| utils | ||
| virtual | ||
| vlan | ||
| wifi | ||