From 712104a97df948a512000ab710a25060bea4224b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Voc=C5=AF?= Date: Thu, 9 Sep 2004 09:36:34 +0000 Subject: [PATCH] * added specific test for \0 at the end of buffer --- org.glite.lb.common/test/il_string_test.cpp | 1 + 1 file changed, 1 insertion(+) 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() { -- 1.8.2.3