From: Michal Voců Date: Thu, 9 Sep 2004 09:36:34 +0000 (+0000) Subject: * added specific test for \0 at the end of buffer X-Git-Tag: ext_bones_merge_dest~36 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=712104a97df948a512000ab710a25060bea4224b;p=jra1mw.git * added specific test for \0 at the end of buffer --- diff --git a/org.glite.lb.common/test/il_string_test.cpp b/org.glite.lb.common/test/il_string_test.cpp index 5f1ecc3..12a11f3 100644 --- a/org.glite.lb.common/test/il_string_test.cpp +++ b/org.glite.lb.common/test/il_string_test.cpp @@ -23,6 +23,7 @@ public: void testPutString() { put_string(buffer, "ahoj"); CPPUNIT_ASSERT( !strncmp(buffer,"4 ahoj\n",7) ); + CPPUNIT_ASSERT(buffer[7] == 0); } void testGetString() {