* test/test_buckets.c
  (test_response_no_body_expected): Combine two tests to extend 100 status
     behavior testing. Test if what is left in the bucket is as expected.


git-svn-id: https://svn.apache.org/repos/asf/serf/trunk@1715433 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/test/test_buckets.c b/test/test_buckets.c
index acff9f9..e33e33b 100644
--- a/test/test_buckets.c
+++ b/test/test_buckets.c
@@ -1361,6 +1361,13 @@
           "Content-Length: 6500000" CRLF
           CRLF
           "blablablablabla" CRLF,
+        "HTTP/1.1 100 Continue" CRLF
+          CRLF
+        "HTTP/1.1 204 No Content" CRLF
+          "Content-Type: text/plain" CRLF
+          "Content-Length: 6500000" CRLF
+          CRLF
+          "blablablablabla" CRLF,
     };
 
     alloc = test__create_bucket_allocator(tc, tb->pool);
@@ -1395,11 +1402,15 @@
         if (i == 0) {
             /* blablablablabla is parsed as the next status line */
             CuAssertIntEquals(tc, SERF_ERROR_BAD_HTTP_RESPONSE, status);
+            DRAIN_BUCKET(tmp);
         }
-        else
-          CuAssertIntEquals(tc, 0, len);
+        else {
+            CuAssertIntEquals(tc, APR_EOF, status);
+            CuAssertIntEquals(tc, 0, len);
 
-        DRAIN_BUCKET(tmp);
+            read_and_check_bucket(tc, tmp, "blablablablabla" CRLF);
+        }
+
         serf_bucket_destroy(bkt);
     }
 }