[vlc-commits] http: fix test failure on BSD
Rémi Denis-Courmont
git at videolan.org
Sat Oct 22 11:37:53 CEST 2016
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Oct 22 12:37:40 2016 +0300| [74acc156521fddf5335d45ad7ae7971e3b1a9573] | committer: Rémi Denis-Courmont
http: fix test failure on BSD
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=74acc156521fddf5335d45ad7ae7971e3b1a9573
---
modules/access/http/h1conn_test.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/modules/access/http/h1conn_test.c b/modules/access/http/h1conn_test.c
index 16968c5..4e313c8 100644
--- a/modules/access/http/h1conn_test.c
+++ b/modules/access/http/h1conn_test.c
@@ -104,7 +104,9 @@ int main(void)
conn_create();
conn_shutdown(SHUT_RD);
s = stream_open();
- assert(s == NULL);
+ if (s != NULL)
+ /* Remote read shutdown does not result in an error on some systems. */
+ vlc_http_stream_close(s, true);
conn_destroy();
/* Test rejected stream */
More information about the vlc-commits
mailing list