Test-only fix, torture improvements.
This commit is contained in:
@@ -191,9 +191,9 @@ bool test_connect_logout_fires(test_state *state) {
|
|||||||
bool test_reconnect(test_state *state) {
|
bool test_reconnect(test_state *state) {
|
||||||
cosmo *client = create_client(state);
|
cosmo *client = create_client(state);
|
||||||
wait_for_connect(state);
|
wait_for_connect(state);
|
||||||
assert(!curl_easy_setopt(client->curl, CURLOPT_TIMEOUT_MS, 1));
|
assert(!curl_easy_setopt(client->curl, CURLOPT_PORT, 444));
|
||||||
wait_for_disconnect(state);
|
wait_for_disconnect(state);
|
||||||
assert(!curl_easy_setopt(client->curl, CURLOPT_TIMEOUT_MS, 10000));
|
assert(!curl_easy_setopt(client->curl, CURLOPT_PORT, 443));
|
||||||
wait_for_connect(state);
|
wait_for_connect(state);
|
||||||
cosmo_shutdown(client);
|
cosmo_shutdown(client);
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
make test
|
||||||
|
|
||||||
while :; do
|
while :; do
|
||||||
valgrind --leak-check=full --show-reachable=yes --num-callers=20 --suppressions=suppressions ./test 2>&1 | tee torture.log
|
valgrind --leak-check=full --show-reachable=yes --num-callers=20 --suppressions=suppressions ./test > torture.log 2>&1
|
||||||
if test $? != 0; then
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user