From: Alex Rousskov Date: Sat, 21 Sep 2013 12:33:29 +0000 (+1200) Subject: Bug 3918: Squid 3.3.9 Self Test Failures on Mac OS X 10.8 X-Git-Tag: SQUID_3_5_0_1~637 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=467d3e2d1cb2c5b38dab6623019b287ff1ff3e7d;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);