serf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kot...@apache.org
Subject svn commit: r1791834 - /serf/trunk/test/test_buckets.c
Date Tue, 18 Apr 2017 20:20:18 GMT
Author: kotkov
Date: Tue Apr 18 20:20:18 2017
New Revision: 1791834

URL: http://svn.apache.org/viewvc?rev=1791834&view=rev
Log:
Following up on r1786654, use a runtime check instead of an #ifdef when
scheduling Brotli tests to avoid -Wunused-function warnings.

* test/test_buckets.c
  (test_buckets): As above.

Modified:
    serf/trunk/test/test_buckets.c

Modified: serf/trunk/test/test_buckets.c
URL: http://svn.apache.org/viewvc/serf/trunk/test/test_buckets.c?rev=1791834&r1=1791833&r2=1791834&view=diff
==============================================================================
--- serf/trunk/test/test_buckets.c (original)
+++ serf/trunk/test/test_buckets.c Tue Apr 18 20:20:18 2017
@@ -3211,15 +3211,15 @@ CuSuite *test_buckets(void)
     SUITE_ADD_TEST(suite, test_hpack_huffman_encode);
     SUITE_ADD_TEST(suite, test_hpack_header_encode);
     SUITE_ADD_TEST(suite, test_http2_frame_bucket_basic);
-#ifdef SERF_HAVE_BROTLI
-    SUITE_ADD_TEST(suite, test_brotli_decompress_bucket_basic);
-    SUITE_ADD_TEST(suite, test_brotli_decompress_bucket_truncated_input);
-    SUITE_ADD_TEST(suite, test_brotli_decompress_bucket_read_bytewise);
-    SUITE_ADD_TEST(suite, test_brotli_decompress_bucket_chunked_input);
-    SUITE_ADD_TEST(suite, test_brotli_decompress_bucket_chunked_input2);
-    SUITE_ADD_TEST(suite, test_brotli_decompress_bucket_garbage_at_end);
-    SUITE_ADD_TEST(suite, test_brotli_decompress_response_body);
-#endif /* SERF_HAVE_BROTLI */
+    if (serf_bucket_is_brotli_supported()) {
+        SUITE_ADD_TEST(suite, test_brotli_decompress_bucket_basic);
+        SUITE_ADD_TEST(suite, test_brotli_decompress_bucket_truncated_input);
+        SUITE_ADD_TEST(suite, test_brotli_decompress_bucket_read_bytewise);
+        SUITE_ADD_TEST(suite, test_brotli_decompress_bucket_chunked_input);
+        SUITE_ADD_TEST(suite, test_brotli_decompress_bucket_chunked_input2);
+        SUITE_ADD_TEST(suite, test_brotli_decompress_bucket_garbage_at_end);
+        SUITE_ADD_TEST(suite, test_brotli_decompress_response_body);
+    }
 #if 0
     /* This test for issue #152 takes a lot of time generating 4GB+ of random
        data so it's disabled by default. */



Mime
View raw message