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