Added a small subtest for GetRunningAppInfo() and verified strange return behavior for team IDs < 0.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@679 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -234,7 +234,12 @@ void GetAppInfoTester::GetRunningAppInfoTest2()
|
|||||||
BRoster roster;
|
BRoster roster;
|
||||||
// invalid team ID
|
// invalid team ID
|
||||||
app_info info;
|
app_info info;
|
||||||
|
#ifdef TEST_R5
|
||||||
CHK(roster.GetRunningAppInfo(-1, &info) == B_ERROR);
|
CHK(roster.GetRunningAppInfo(-1, &info) == B_ERROR);
|
||||||
|
#else
|
||||||
|
CHK(roster.GetRunningAppInfo(-1, &info) == B_BAD_TEAM_ID);
|
||||||
|
#endif
|
||||||
|
CHK(roster.GetRunningAppInfo(-2, &info) == B_BAD_TEAM_ID);
|
||||||
// originally valid team ID -- app terminates before call
|
// originally valid team ID -- app terminates before call
|
||||||
AppRunner runner(true);
|
AppRunner runner(true);
|
||||||
CHK(runner.Run("AppRunTestApp1") == B_OK);
|
CHK(runner.Run("AppRunTestApp1") == B_OK);
|
||||||
|
|||||||
Reference in New Issue
Block a user