1 // BMessengerTestApp1.cpp 2 3 #include <stdio.h> 4 5 #include <OS.h> 6 7 #include "CommonTestApp.h" 8 9 int 10 main() 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-bmessenger-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