sb118: fixed tests for wntmsci12

This commit is contained in:
sb 2010-01-14 15:11:09 +01:00
parent 514ec60a0e
commit 58c8708eec
2 changed files with 8 additions and 6 deletions

View file

@ -631,8 +631,8 @@ namespace osl_Pipe
printPipeError( aPipe );
aPipe.clear( );
CPPUNIT_ASSERT_MESSAGE( "#test comment#: open a non-exist pipe. not passed in (W32)(LINUX)(UNX).",
osl_Pipe_E_invalidError == nError );
CPPUNIT_ASSERT_MESSAGE( "#test comment#: open a non-exist pipe.",
nError != osl_Pipe_E_None );
}
void getError_002( )
@ -644,8 +644,8 @@ namespace osl_Pipe
aPipe.clear( );
aPipe1.clear( );
CPPUNIT_ASSERT_MESSAGE( "#test comment#: create an already exist pipe.not passed in (W32)(LINUX)(UNX).",
osl_Pipe_E_invalidError == nError );
CPPUNIT_ASSERT_MESSAGE( "#test comment#: create an already exist pipe.",
nError != osl_Pipe_E_None );
}
CPPUNIT_TEST_SUITE( getError );

View file

@ -70,7 +70,8 @@ void oldtests::test_profile(void)
// successful write
if ((hProfile = osl_openProfile( ustrProfileName, 0 )))
hProfile = osl_openProfile( ustrProfileName, 0 );
if (hProfile != 0)
{
if (! osl_writeProfileBool( hProfile, "testsection", "testbool", 1 ))
printf( "### cannot write into init file!\n" );
@ -79,7 +80,8 @@ void oldtests::test_profile(void)
}
// unsuccessful write
if ((hProfile = osl_openProfile( ustrProfileName2, 0 )))
hProfile = osl_openProfile( ustrProfileName2, 0 );
if (hProfile != 0)
{
if (osl_writeProfileBool( hProfile, "testsection", "testbool", 1 ))
printf( "### unexpected success writing into test2.ini!\n" );