Skip to content
This repository was archived by the owner on Feb 18, 2023. It is now read-only.

stable #153

Merged
merged 61 commits into from
Nov 1, 2022
Merged
Changes from 1 commit
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
0a77325
async: add new tests (#107)
sreimers Aug 3, 2022
84015c8
cmake: add path to windows build
alfredh Aug 13, 2022
9db06a4
mock: fix warning
alfredh Aug 13, 2022
11b66e3
dns/client: add async getaddrinfo usage (#112)
sreimers Aug 14, 2022
31bc53c
fmt: workaround for windows compiler
alfredh Aug 14, 2022
bf82612
sys: fix unlink and WIN32
alfredh Aug 14, 2022
ee3c35a
test: cast values to fix WIN32 warnings
alfredh Aug 14, 2022
65e5a32
trace: fix unlink and WIN32
alfredh Aug 14, 2022
569c976
main: only run regular tests if GETOPT is missing
alfredh Aug 14, 2022
6de493e
test: various fixes for WIN32
alfredh Aug 14, 2022
e44fa24
async: fix multithreading tests (#115)
sreimers Aug 14, 2022
7fded3a
main: if GETOPT is missing run regular tests
alfredh Aug 14, 2022
95acc18
cmake: add LINKLIBS variable
alfredh Aug 14, 2022
0bbb377
test cmake on Windows (#114)
alfredh Aug 14, 2022
b551452
test: fix c11 err handling
sreimers Aug 14, 2022
f17625e
cmake: use re config (#118)
sreimers Sep 3, 2022
ef99745
base64: Encoding/Decoding with URL and Filename Safe Alphabet (#113)
sreimers Sep 3, 2022
511e5fe
cmake: bump minimum to 3.10 (#119)
alfredh Sep 3, 2022
69824a6
Don't fail on compilation when there no OpenSSL on target platform (#…
widgetii Sep 4, 2022
6b793c9
trice: fix win32 with explicit error tests (#121)
sreimers Sep 4, 2022
e6c34ed
http: test http/https requests with large body
fAuernigg Aug 4, 2022
b24577a
http: validate body of http requests for get method
fAuernigg Aug 31, 2022
65424e8
http: add test for http conn requests
fAuernigg Aug 31, 2022
0018861
dns: test dnsc_getaddrinfo_enabled
fAuernigg Sep 14, 2022
3dda299
rtp: Update tests for the changed rtp_send signature.
Lastique Jul 9, 2022
1dc96d5
crc32: add re wrapper
alfredh Sep 16, 2022
1265d3a
sipreg: use TEST_ERR and remove static port test
sreimers Sep 18, 2022
3b80732
cmake: no need to link to libz
alfredh Sep 22, 2022
f64a1d0
sa: init err
alfredh Sep 23, 2022
18ad6a1
cmake: add optional zlib linking
sreimers Sep 23, 2022
afed483
cmake/FindREM: add rem-static target name
sreimers Sep 23, 2022
dbb6b81
sys: remove old sys div test (#130)
alfredh Sep 25, 2022
ad8ea9b
aubuf: refactor aubuf_auframe test (#70)
sreimers Sep 27, 2022
5bf765a
rtcp: use udp_send() (#132)
alfredh Sep 29, 2022
51b438b
leb128: remove debug
alfredh Oct 4, 2022
0b53f39
http: fix http content length format (#136)
fAuernigg Oct 4, 2022
5e20771
Support run specific integration test and add http with local dnssrv …
fAuernigg Oct 5, 2022
e672d98
odict: check return value of compare()
alfredh Oct 5, 2022
06434e3
odict: use correct union field (boolean) (#137)
alfredh Oct 5, 2022
62b420d
test: use fs_stdio_restore() (#138)
sreimers Oct 5, 2022
16dc240
oom: align testcase names
alfredh Oct 5, 2022
c44d0ee
align testcase names
alfredh Oct 5, 2022
af2c1a7
tmr: increase upper bound
alfredh Oct 5, 2022
d3867f4
remove leb128 printf
alfredh Oct 5, 2022
aa787a1
sys: add todo
alfredh Oct 5, 2022
01d9545
net: add ipv6_supported()
alfredh Oct 6, 2022
f8017ea
sys: unique filename in test_sys_fs_fopen (#142)
alfredh Oct 6, 2022
082640e
net: remove logging
alfredh Oct 7, 2022
25f06cc
Enable valgrind for Linux build (#140)
alfredh Oct 7, 2022
985b200
integration: make IPv6 tests optional
alfredh Oct 7, 2022
d8674bc
bfcp: check for handler errors after re_main
alfredh Oct 7, 2022
4c58d74
fmt: add test_fmt_str_itoa (#143)
sreimers Oct 7, 2022
49f1adf
git: ignore cmake generated files
alfredh Oct 8, 2022
2398b44
workflows: add run-on-arch action (#134)
alfredh Oct 8, 2022
751eda4
test_multithread: increase timeout to 15 seconds
alfredh Oct 9, 2022
6b331e7
tls: remove some warnings (#144)
alfredh Oct 9, 2022
57691b2
ci/run-on-arch: add prepare (needed for dependency) (#145)
sreimers Oct 9, 2022
bc85c16
ci: use actions/checkout@v3 (#148)
sreimers Oct 15, 2022
4e9dd39
list: add test_list_flush (#151)
sreimers Oct 29, 2022
613b830
list: fix flushl global (#152)
sreimers Oct 29, 2022
fbed56b
Merge branch 'stable' into update-stable
alfredh Nov 1, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
list: fix flushl global (#152)
sreimers authored Oct 29, 2022

Verified

This commit was signed with the committer’s verified signature.
sstanculeanu Sorin Stanculeanu
commit 613b830239c487a7383d0f2d4c6b02627c8c9bf5
13 changes: 8 additions & 5 deletions src/list.c
Original file line number Diff line number Diff line change
@@ -193,28 +193,28 @@ int test_list_sort(void)
}


static struct list flushl = LIST_INIT;

struct flush_data {
struct le le;
struct list *flushl;
};


static void data_destroy(void *arg)
{
(void)arg;
struct flush_data *data = arg;
struct le *le;

LIST_FOREACH(&flushl, le)
LIST_FOREACH(data->flushl, le)
{
assert(list_count(&flushl));
assert(list_count(data->flushl));
}
}


int test_list_flush(void)
{
struct flush_data *data[2];
struct list flushl = LIST_INIT;
int err = 0;

data[0] = mem_zalloc(sizeof(struct flush_data), data_destroy);
@@ -227,6 +227,9 @@ int test_list_flush(void)
return ENOMEM;
}

data[0]->flushl = &flushl;
data[1]->flushl = &flushl;

list_append(&flushl, &data[0]->le, data[0]);
list_append(&flushl, &data[1]->le, data[1]);