tests/BHandlerTester: Fix Perform1 test case
TBHandlerTester::Perform1() tests the result of calling BHandler::Perform() with invalid input. On BeOS R5 this returns B_ERROR, but on Haiku this delegates to BArchivable::Perform(), which returns B_NAME_NOT_FOUND. Change-Id: Ia05220da4155a629cf611fec76da6477b9f1dbf4 Reviewed-on: https://review.haiku-os.org/c/haiku/+/2137 Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
764345e18c
commit
e8b9c0e1a6
@@ -264,15 +264,15 @@ void TBHandlerTester::SetName2()
|
||||
//------------------------------------------------------------------------------
|
||||
/**
|
||||
Perform(perform_code d, void *arg)
|
||||
@case feed meaningless data, should return B_ERROR
|
||||
@case feed meaningless data, should return B_NAME_NOT_FOUND
|
||||
@param d N/A
|
||||
@param arg NULL
|
||||
@results Returns B_ERROR
|
||||
@results Returns B_NAME_NOT_FOUND
|
||||
*/
|
||||
void TBHandlerTester::Perform1()
|
||||
{
|
||||
BHandler Handler;
|
||||
CPPUNIT_ASSERT(Handler.Perform(0, NULL) == B_ERROR);
|
||||
CPPUNIT_ASSERT(Handler.Perform(0, NULL) == B_NAME_NOT_FOUND);
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user