Joel Cunningham
b1258bf8e6
unit: speed up test_pbuf_queueing_bigger_than_64k
...
Speed up test_pbuf_queueing_bigger_than_64k by using memcmp rather than
a byte by byte comparision. This allows using word aligned compares
within the memcmp implementation
This fixes a unit test timeout on my Windows 10 box with WSL which was
taking longer than 4 seconds for the unix port unit test to complete
See failure details in https://savannah.nongnu.org/patch/index.php?9579
8 years ago
goldsimon
f343a67b40
netif unit test: add some more tests for ext callbacks
8 years ago
goldsimon
e645d00484
netif unit test: fix -Werror=c++-compat
8 years ago
goldsimon
734b6ab57a
netif: ensure netif_set_addr() only results in one "ext_status_callback"
...
This can be used e.g. in mdns to create one, not multiple "changed" triggers
if IP address and netmask change at the same time.
8 years ago
goldsimon
fa75ffed9d
unit tests: added test_netif (checking ext_callbacks only, for now)
8 years ago
Dirk Ziegelmeier
990c25d4f3
Add unit test for a long running timer
8 years ago
Dirk Ziegelmeier
b6b14438b7
Rename lwip_sys_timers_get_next_timout() to sys_timeouts_get_next_timeout()
8 years ago
goldsimon
1affbb4bd5
unit tests: fixed testing itoa with too small buffer
8 years ago
Dirk Ziegelmeier
d7566216c9
Remove Simon's compile fix in test_timers.c, it is not needed any more. The function is now used.
8 years ago
Dirk Ziegelmeier
b4768f1711
Once again: Fix build warnings in test_timers.c
8 years ago
Dirk Ziegelmeier
eaca067c7d
Make _cyclic_ timers interval more deterministic - next timeout is calculated from last due time instead of relative to current time
...
This eliminates the cyclic timer jitter
8 years ago
Dirk Ziegelmeier
dd3861720f
Fix bug #52748 : the bug in timeouts.c by reimplementing timer logic to use absolute instead of relative timeout values
8 years ago
goldsimon
c4867b878c
Try to silence unused function warning in travis
8 years ago
Dirk Ziegelmeier
1623c3e2cc
Add test for bug 52748
...
Disabled :-) -> travis doesn't complain
8 years ago
Dirk Ziegelmeier
8de4900641
Work on timer unit tests
8 years ago
Dirk Ziegelmeier
8542556a03
Fix build warning in test_def.c
8 years ago
Dirk Ziegelmeier
756b7431a7
Start implementing unit tests for timers
8 years ago
goldsimon
c6887522fe
Fixed lwip_itoa (bug #51729 ) and added unit tests for it
8 years ago
goldsimon
1710fc1a89
Fix a corner case of double-free in the heap
9 years ago
goldsimon
f058364d7f
Added two simple unit tests for illegal calls to mem_free()
9 years ago
goldsimon
4cec20230e
Ensure that unit tests leave the stack in a clean state
9 years ago
goldsimon
5d10e1b6c3
test_pbuf: free pbufs at the end of tests
9 years ago
goldsimon
7617a76b19
added unit test to allocate zero length pbufs
9 years ago
sg
a2fd68098e
minor: macros should not end with underscore(s)
10 years ago
goldsimon
288fc8ede3
fixed unit tests after changing memp stats
10 years ago
Dirk Ziegelmeier
d133999e1d
Fix warnings in unit test code when compiling with stricter GCC settings
10 years ago
sg
767d0d9046
Fixed unit tests (compiler errors/warnings, coding style)
11 years ago
Erik Ekman
145efb1a33
Fix edge case in pbuf_take_at()
...
Writes to offsets pointing to the start of a pbuf in the chain
did nothing and just returned ERR_OK.
Added unit tests to verify the fix, and also
that pbuf_get_at()/pbuf_put_at() handles this case.
11 years ago
goldsimon
df16a7c4f3
Fixed compiler warnings in unit tests
11 years ago
goldsimon
0ff98eb2f5
mem: added an MEMP_OVERFLOW_CHECK implementation for MEM_USE_POOLS; added another unit test
12 years ago
Simon Goldschmidt
dbd125c714
Fixed bug #35874 reserved identifier violation (removed leading underscores from header include guards)
12 years ago
Simon Goldschmidt
a80c4d147c
Unit test patch by Erik Ekman: use macro to store correct testcase name
12 years ago
Simon Goldschmidt
751deac9d1
Another fix to window scaling: support queueing more than 64 KByte in ooseq data
12 years ago
goldsimon
d690775ca1
Added unit test that pbuf_copy returns a correct error code for pbuf queues ending with a zero-length pbuf.
14 years ago
Simon Goldschmidt
bcfe3dacc6
fixed unit tests (one TCP test failed, removed comma at the end of array initializers)
15 years ago
goldsimon
52970c2459
Renamed mem_realloc() to mem_trim() to prevent confusion with realloc()
16 years ago
goldsimon
f5d4f3d83c
For wrong configurations, let the test fail instead of the compiler
16 years ago
goldsimon
e0c5c4de88
Fixed bug #28679 : mem_realloc calculates mem_stats wrong and added test case for it
16 years ago