Author: rhuijben
Date: Tue Oct 13 13:56:22 2015
New Revision: 1708398
URL: http://svn.apache.org/viewvc?rev=1708398&view=rev
Log:
* serf-dev/dev/test/test_buckets.c
(read_bucket_and_check_pattern): Extend comments a bit.
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=1708398&r1=1708397&r2=1708398&view=diff
==============================================================================
--- serf/trunk/test/test_buckets.c (original)
+++ serf/trunk/test/test_buckets.c Tue Oct 13 13:56:22 2015
@@ -1388,7 +1388,8 @@ static apr_status_t deflate_compress(con
}
/* Reads bucket until EOF found and compares read data with zero terminated
- string expected. Report all failures using CuTest. */
+ string expected. The expected pattern is looped when necessary to match
+ the number of expected bytes. Report all failures using CuTest. */
static void read_bucket_and_check_pattern(CuTest *tc, serf_bucket_t *bkt,
const char *pattern,
apr_size_t expected_len)
@@ -1416,6 +1417,7 @@ static void read_bucket_and_check_patter
apr_size_t bytes_to_compare;
if (exp_rem == 0) {
+ /* Init pattern. Potentially again */
expected = pattern;
exp_rem = pattern_len;
}
|