--------------------- PatchSet 4620 Date: 2007/05/20 07:17:44 Author: amosjeffries Branch: ayjwork Tag: (none) Log: Test for possible bug in append. Members: src/SqString.cc:1.1.2.9->1.1.2.10 src/SqString.h:1.1.2.5->1.1.2.6 src/tests/testEvent.cc:1.3.14.1->1.3.14.2 Index: squid3/src/SqString.cc =================================================================== RCS file: /cvsroot/squid-sf//squid3/src/SqString.cc,v retrieving revision 1.1.2.9 retrieving revision 1.1.2.10 diff -u -r1.1.2.9 -r1.1.2.10 --- squid3/src/SqString.cc 20 May 2007 04:17:04 -0000 1.1.2.9 +++ squid3/src/SqString.cc 20 May 2007 07:17:44 -0000 1.1.2.10 @@ -1,6 +1,6 @@ /* - * $Id: SqString.cc,v 1.1.2.9 2007/05/20 04:17:04 amosjeffries Exp $ + * $Id: SqString.cc,v 1.1.2.10 2007/05/20 07:17:44 amosjeffries Exp $ * * DEBUG: section 67 String * AUTHOR: Duane Wessels @@ -50,7 +50,7 @@ } void -SqString::limitInit(const char *str, int len) +SqString::limitInit(const char *str, unsigned int len) { PROF_start(StringLimitInit); assert(this && str); Index: squid3/src/SqString.h =================================================================== RCS file: /cvsroot/squid-sf//squid3/src/SqString.h,v retrieving revision 1.1.2.5 retrieving revision 1.1.2.6 diff -u -r1.1.2.5 -r1.1.2.6 --- squid3/src/SqString.h 18 May 2007 15:42:16 -0000 1.1.2.5 +++ squid3/src/SqString.h 20 May 2007 07:17:44 -0000 1.1.2.6 @@ -1,6 +1,6 @@ /* - * $Id: SqString.h,v 1.1.2.5 2007/05/18 15:42:16 amosjeffries Exp $ + * $Id: SqString.h,v 1.1.2.6 2007/05/20 07:17:44 amosjeffries Exp $ * * DEBUG: section 67 String * AUTHOR: Duane Wessels @@ -135,7 +135,7 @@ #endif - void limitInit(const char *str, int len); + void limitInit(const char *str, unsigned int len); private: void initBuf(size_t sz); void init (char const *); Index: squid3/src/tests/testEvent.cc =================================================================== RCS file: /cvsroot/squid-sf//squid3/src/tests/testEvent.cc,v retrieving revision 1.3.14.1 retrieving revision 1.3.14.2 diff -u -r1.3.14.1 -r1.3.14.2 --- squid3/src/tests/testEvent.cc 2 May 2007 12:53:06 -0000 1.3.14.1 +++ squid3/src/tests/testEvent.cc 20 May 2007 07:17:44 -0000 1.3.14.2 @@ -110,6 +110,7 @@ "test event\t0.000000 seconds\t0\tN/A\n" "test event2\t0.000000 seconds\t0\tN/A\n"; CPPUNIT_ASSERT_EQUAL( expect, anEntry->_appended_text); + CPPUNIT_ASSERT_EQUAL( (string)"test_exact", anEntry->_appended_text); delete anEntry; }