address compiler warnings
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10125 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -23,7 +23,6 @@ MallocWriteTest::PerformTest(void)
|
||||
|
||||
BMallocIO mem;
|
||||
ssize_t err;
|
||||
off_t pos;
|
||||
|
||||
NextSubTest();
|
||||
err = mem.Write(writeBuf, 7);
|
||||
|
||||
@@ -23,12 +23,12 @@ StringAccessTest::PerformTest(void)
|
||||
NextSubTest();
|
||||
BString string("Something"B_UTF8_ELLIPSIS);
|
||||
CPPUNIT_ASSERT(string.CountChars() == 10);
|
||||
CPPUNIT_ASSERT(string.Length() == strlen(string.String()));
|
||||
CPPUNIT_ASSERT((unsigned)string.Length() == strlen(string.String()));
|
||||
|
||||
NextSubTest();
|
||||
BString string2("ABCD");
|
||||
CPPUNIT_ASSERT(string2.CountChars() == 4);
|
||||
CPPUNIT_ASSERT(string2.Length() == strlen(string2.String()));
|
||||
CPPUNIT_ASSERT((unsigned)string2.Length() == strlen(string2.String()));
|
||||
|
||||
NextSubTest();
|
||||
static char s[64];
|
||||
@@ -36,7 +36,7 @@ StringAccessTest::PerformTest(void)
|
||||
strcat(s, B_UTF8_SMILING_FACE);
|
||||
BString string3(s);
|
||||
CPPUNIT_ASSERT(string3.CountChars() == 2);
|
||||
CPPUNIT_ASSERT(string3.Length() == strlen(string3.String()));
|
||||
CPPUNIT_ASSERT((unsigned)string3.Length() == strlen(string3.String()));
|
||||
|
||||
//An empty string
|
||||
NextSubTest();
|
||||
|
||||
@@ -100,17 +100,15 @@ StringAssignTest::PerformTest(void)
|
||||
CPPUNIT_ASSERT(strcmp(newstring.String(), "") == 0);
|
||||
delete str;
|
||||
|
||||
const int32 OUT_OF_MEM_VAL = 2*1000*1000*1000;
|
||||
#ifndef TEST_R5
|
||||
const int32 OUT_OF_MEM_VAL = 2*1000*1000*1000;
|
||||
//SetTo(char, int32) with excessive length:
|
||||
NextSubTest();
|
||||
str = new BString("dummy");
|
||||
str->SetTo('C', OUT_OF_MEM_VAL);
|
||||
CPPUNIT_ASSERT(strcmp(str->String(), "dummy") == 0);
|
||||
delete str;
|
||||
#endif
|
||||
|
||||
#ifndef TEST_R5
|
||||
//SetTo(char*, int32) with excessive length:
|
||||
NextSubTest();
|
||||
str = new BString("dummy");
|
||||
|
||||
@@ -32,7 +32,7 @@ StringConstructionTest::PerformTest(void)
|
||||
NextSubTest();
|
||||
string = new BString(str);
|
||||
CPPUNIT_ASSERT(strcmp(string->String(), str) == 0);
|
||||
CPPUNIT_ASSERT(string->Length() == strlen(str));
|
||||
CPPUNIT_ASSERT((unsigned)string->Length() == strlen(str));
|
||||
delete string;
|
||||
|
||||
//BString(NULL)
|
||||
@@ -61,7 +61,7 @@ StringConstructionTest::PerformTest(void)
|
||||
NextSubTest();
|
||||
string = new BString(str, 255);
|
||||
CPPUNIT_ASSERT(strcmp(string->String(), str) == 0);
|
||||
CPPUNIT_ASSERT(string->Length() == strlen(str));
|
||||
CPPUNIT_ASSERT((unsigned)string->Length() == strlen(str));
|
||||
delete string;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user