X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/fc388ed8c2016ad44f83d20859bf864562f731a1..df4733677cb16642b53628d22e4d927aadad8b27:/Server/tests/server_test.cpp diff --git a/Server/tests/server_test.cpp b/Server/tests/server_test.cpp index eddd8dd..f9989b5 100644 --- a/Server/tests/server_test.cpp +++ b/Server/tests/server_test.cpp @@ -53,9 +53,20 @@ int main(int argc, char* argv[]) { str >> port; } + // Inicializa threads. + Glib::thread_init(); + + try { // Corre el server. Server server(port); server.run(false); + } catch (const char* e) { + cerr << "Error: " << e << endl; + } catch (exception e) { + cerr << "Error: " << e.what() << endl; + } catch (...) { + cerr << "Error desconocido!" << endl; + } return 0; }