summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorHarry Sintonen <sintonen@iki.fi>2020-11-03 12:29:40 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-11-04 08:14:16 +0100
commit77a7b93c25041ec27baa7bbe4300cf88cb3c4dbb (patch)
tree9a5ffba4297cbcc704b69255577255c96154ce66 /tests
parentadb0fcfab238ac6858ade3b9b5cc332fa0f60dfd (diff)
downloadcurl-77a7b93c25041ec27baa7bbe4300cf88cb3c4dbb.tar.gz
rtsp: fixed the RTST Session ID mismatch in test 570
Closes #6161
Diffstat (limited to 'tests')
-rw-r--r--tests/libtest/lib570.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/libtest/lib570.c b/tests/libtest/lib570.c
index 016ed1098..879edefdb 100644
--- a/tests/libtest/lib570.c
+++ b/tests/libtest/lib570.c
@@ -101,8 +101,12 @@ int test(char *URL)
stream_uri = NULL;
res = curl_easy_perform(curl);
- if(res != CURLE_RTSP_SESSION_ERROR) {
+ if(res == CURLE_RTSP_SESSION_ERROR) {
+ res = 0;
+ }
+ else {
fprintf(stderr, "Failed to detect a Session ID mismatch");
+ res = 1;
}
test_cleanup: