casaroli opened a new pull request, #4016:
URL: https://github.com/apache/nuttx-apps/pull/4016

   depends-on: apache/nuttx/pull/21650
   
   ## Summary
   
   New cmocka group `cmocka_net_radio` in testing/nettest. It calls 
`recvfrom()` three times on each of these sockets: a Bluetooth L2CAP socket 
that is not bound, a Bluetooth HCI socket bound to a device index that no 
device has, and an IEEE 802.15.4 socket that is not bound. No radio device 
matches these sockets, so each call must fail with `ENODEV`, and `close()` must 
work after them.
   
   Before apache/nuttx#21650, the first call unlocked a socket lock that it did 
not take. With `CONFIG_DEBUG_ASSERTIONS`, the program then fails an assertion 
in `nxrmutex_unlock()`.
   
   ## Impact
   
   New test only. `TESTING_NET_RADIO` is on by default when `NET_BLUETOOTH` or 
`NET_IEEE802154` is set, as the other nettest groups. Make and CMake.
   
   ## Testing
   
   `CONFIG_DEBUG_ASSERTIONS=y`, `CONFIG_TESTING_NET_TEST=y`, Linux host.
   
   - sim:bluetooth with apache/nuttx#21650: `[  PASSED  ] 2 test(s).` nuttx 
master: `Assertion failed : at file: misc/lib_mutex.c:486` in 
`test_radio_bluetooth_l2cap`, and the program is killed.
   - sim:pf_ieee802154 (IEEE 802.15.4 loopback radio) with apache/nuttx#21650: 
`[  PASSED  ] 1 test(s).` nuttx master: the same assertion in 
`test_radio_ieee802154`.
   - Builds: sim:bluetooth and sim:pf_ieee802154 (Make, `-Wno-cpp -Werror`), 
sim:dynconns (CMake, both socket families), qemu-armv8a:knsh (Make, kernel 
build).
   - checkpatch: `tools/checkpatch.sh -c -u -m -g` passes.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to