rem: CHK(context.CheckRefsMessage(team, cookie)); CHK(context.CheckNextMessage(team, cookie, MSG_READY_TO_RUN)); CHK(context.CheckNextMessage(team, cookie, MSG_QUIT_REQUESTED)); CHK(context.CheckNextMessage(team, cookie, MSG_TERMINATED));
add: CHK(context.CheckRefsMessage(caller, team, cookie)); CHK(context.CheckNextMessage(caller, team, cookie, MSG_READY_TO_RUN)); CHK(context.CheckNextMessage(caller, team, cookie, MSG_QUIT_REQUESTED)); CHK(context.CheckNextMessage(caller, team, cookie, MSG_TERMINATED));
context: CommonLaunchTest13(LaunchCaller &caller){	LaunchContext context(caller);	BRoster roster;	// make sure, the original preferred app for the "text" supertype is	// re-installed	struct TextTypeSaver {		TextTypeSaver()		{			BMimeType textType("text");			hasPreferredApp				= (textType.GetPreferredApp(preferredApp) == B_OK);		}		~TextTypeSaver()		{			BMimeType textType("text");			textType.SetPreferredApp(hasPreferredApp ? preferredApp : NULL);		}		bool	hasPreferredApp;		char	preferredApp[B_MIME_TYPE_LENGTH];	} _saver;	create_app(appFile1, appType1);	CHK(BMimeType("text").SetPreferredApp(appType1) == B_OK);	install_type(textTestType);	team_id team;	CHK(context(textTestType, &team) == B_OK);	entry_ref ref = ref_for_team(team);	CHK(ref_for_path(appFile1) == ref);	check_app_type(appType1, appFile1);	context.Terminate();	int32 cookie = 0;	CHK(context.CheckNextMessage(team, cookie, MSG_STARTED));	CHK(context.CheckMessageMessages(team, cookie));	CHK(context.CheckArgvMessage(team, cookie, &ref));	if (caller.SupportsRefs() && !caller.SupportsArgv())		CHK(context.CheckRefsMessage(team, cookie));	CHK(context.CheckNextMessage(team, cookie, MSG_READY_TO_RUN));	CHK(context.CheckNextMessage(team, cookie, MSG_QUIT_REQUESTED));	CHK(context.CheckNextMessage(team, cookie, MSG_TERMINATED));}