From: Wim Taymans Date: Thu, 20 Jun 2013 15:30:49 +0000 (+0200) Subject: tests: fix test X-Git-Tag: 1.19.3~495^2~1108 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cd8a81b3b140ddee37efcfc606ec62b748428c74;p=platform%2Fupstream%2Fgstreamer.git tests: fix test Actually do what the comment says. Also keep the old code around, not sure what should happen when you get a 454 from a TEARDOWN, does it close the connection? it currently doesn't. --- diff --git a/tests/check/gst/rtspserver.c b/tests/check/gst/rtspserver.c index 2a01aed..5edeffd 100644 --- a/tests/check/gst/rtspserver.c +++ b/tests/check/gst/rtspserver.c @@ -1011,6 +1011,7 @@ GST_START_TEST (test_play_multithreaded_timeout_client) GstRTSPSessionPool *pool; GstRTSPMessage *request; GstRTSPMessage *response; + GstRTSPStatusCode code; gst_rtsp_server_set_max_threads (server, 2); pool = gst_rtsp_server_get_session_pool (server); @@ -1058,9 +1059,18 @@ GST_START_TEST (test_play_multithreaded_timeout_client) fail_unless (gst_rtsp_message_new (&response) == GST_RTSP_OK); fail_unless (gst_rtsp_connection_receive (conn, response, NULL) == + GST_RTSP_OK); + gst_rtsp_message_parse_response (response, &code, NULL, NULL); + fail_unless (code == GST_RTSP_STS_SESSION_NOT_FOUND); + gst_rtsp_message_free (response); + +#if 0 + fail_unless (gst_rtsp_message_new (&response) == GST_RTSP_OK); + fail_unless (gst_rtsp_connection_receive (conn, response, NULL) == GST_RTSP_ESYS); fail_unless (errno == ECONNRESET); gst_rtsp_message_free (response); +#endif /* clean up and iterate so the clean-up can finish */ g_object_unref (pool);