1// AppRunTestApp1.cpp
2
3#include <stdio.h>
4
5#include <OS.h>
6
7#include "CommonTestApp.h"
8
9int
10main()
11{
12// R5: doesn't set the error variable in case of success
13#ifdef TEST_R5
14	status_t error = B_OK;
15#else
16	status_t error = B_ERROR;
17#endif
18	CommonTestApp app("application/x-vnd.obos-app-run-testapp1", &error);
19	init_connection();
20	report("error: %lx\n", error);
21	report("InitCheck(): %lx\n", app.InitCheck());
22	if (error == B_OK)
23		app.Run();
24	return 0;
25}
26
27