[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/release-0.3.1] Ensure that each compression backend returns a provider version identifier.
commit 3772fdf756a13f7b6a8e713e5d53eb5d7b2785cd
Author: Alexander Færøy <ahf@xxxxxxxxxxxxxx>
Date: Tue May 16 19:08:18 2017 +0000
Ensure that each compression backend returns a provider version identifier.
---
src/test/test_util.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/test/test_util.c b/src/test/test_util.c
index b3f8ecdf5..654498fbb 100644
--- a/src/test/test_util.c
+++ b/src/test/test_util.c
@@ -2250,6 +2250,11 @@ test_util_compress_impl(compress_method_t method)
tt_assert(tor_compress_supports_method(method));
+ if (method != NO_METHOD) {
+ tt_assert(tor_compress_version_str(method) != NULL);
+ tt_assert(tor_compress_header_version_str(method) != NULL);
+ }
+
buf1 = tor_strdup("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZAAAAAAAAAAAAAAAAAAAZ");
tt_assert(detect_compression_method(buf1, strlen(buf1)) == UNKNOWN_METHOD);
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits