1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

11 Commits

Author SHA1 Message Date
Francisco Molina
8516e258a3 tests/lwip*: use ztimer instead of xtimer 2022-03-03 15:54:22 +01:00
Francisco Molina
7ec1d2ecb7
tests/lwip_sock_tcp: remove duplicated xtimer_init
xtimer is already initiated in auto_init, no need to perform
initiation twice.
2020-10-08 16:26:17 +02:00
Marian Buschsieweke
eb1279005c
tests: Cleanup access to internal variables
Replace direct accesses to sched_active_thread and sched_active_pid with
the helper functions thread_getpid() and thread_get_active(). This serves
two purposes:

1. It makes accidental writes to those variable from outside core less likely.
2. Casting off the volatile qualifier is now well contained to those two
   functions
2020-08-24 09:08:01 +02:00
Martine S. Lenders
c90654d4cc
tests/lwip_sock_tcp: fix -EADDRINUSE test
When compiled with `LWIP_IPV4=1 LWIP_IPV6=1` this test currently fails
in current master. This "regression" was introduced with 035acc2e53.
However, after some debugging I think that commit actually revealed a
problem with the test rather than introducing a bug.

The test starts the central server, and then checks if opening a
listening socket on the same port causes an `-EADDRINUSE` error.
The server, on the other hand, starts with `SOCK_FLAGS_REUSE_EP`, so of
course the listening operation may succeed. Instead, let's just call
`sock_tcp_listen` twice with two distinct queue objects. Way easier and
also more correct.
2020-07-31 12:49:36 +02:00
Gunar Schorcht
e4909375b0 tests/lwip_sock_tcp: fix NDEBUG compile problem 2020-03-12 18:04:42 +01:00
Francisco Molina
e0855dedfd
tests: remove uneeded DISABLE_MODULE+=auto_init 2020-02-12 16:51:34 +01:00
Francisco Molina
416c048737 tests: add test_utils_interactive_sync when possible
- Define test_utils_interactive_sync as DEFAULT_MODULE in Makefile.tests_common
- For tests disabling autoinit, add test_utils_interactive_sync to main
- Add DISABLE_MODULE += test_utils_interactive_sync for tests requiring
  sudo,  `tests/shell`, `tests/minimal` and `tests/stdin`
- Add shell_commands to tests/periph_wdt and tests/struct_tm_utility to
  pull `r` and `s` commands
- Remove includes and usage in `tests/main.c` for tests that where
  already using test_utils_interactive_sync
2019-11-27 15:07:42 +01:00
Martine Lenders
a291facbd7 tests/lwip_sock_tcp: make non-static end-point consts static 2018-10-16 19:09:24 +02:00
Martine Lenders
f6964c1065 tests/lwip_sock_tcp: make IPv4 address byteorder static 2018-10-16 19:09:23 +02:00
cfd10c394a adapt to changed byteorder.h 2017-04-13 11:35:35 +02:00
Martine Lenders
b915d15de1 pkg: provide sock_tcp support for lwip 2017-02-13 20:10:42 +01:00