From: Alex Rousskov Date: Sun, 29 Sep 2013 14:21:14 +0000 (-0600) Subject: Bug 3918: Squid 3.3.9 Self Test Failures on Mac OS X 10.8 X-Git-Tag: SQUID_3_4_0_2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9274d1037ef6d3c3bf67e1dd00cba1aafcd7e0d2;p=thirdparty%2Fsquid.git Bug 3918: Squid 3.3.9 Self Test Failures on Mac OS X 10.8 --- diff --git a/src/tests/testHttpReply.cc b/src/tests/testHttpReply.cc index 2510b02f1b..04aa5ab9a8 100644 --- a/src/tests/testHttpReply.cc +++ b/src/tests/testHttpReply.cc @@ -188,7 +188,7 @@ testHttpReply::testSanityCheckFirstLine() error = Http::scNone; // status line with nul-byte - input.append("HTTP/1.1\0200 Okay\n\n", 19); /* real case seen */ + input.append("HTTP/1.1" "\0" "200 Okay\n\n", 19); /* real case seen */ hdr_len = headersEnd(input.content(),input.contentSize()); CPPUNIT_ASSERT(!engine.sanityCheckStartLine(&input, hdr_len, &error) ); CPPUNIT_ASSERT_EQUAL(error, Http::scInvalidHeader);