X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=tests%2Fdbus_api%2Ftest_open_default_inbox.c;h=3cd8e95d1301cfcf5d5009740d033591e787c132;hb=f054d0ce76150e94e2379a565ee9dfa59402df47;hp=4b320aec098328c8d35e98693c7c71c6e9c22f8c;hpb=7d9909f19b790bff37f0937cbe0eebb10769d547;p=modest diff --git a/tests/dbus_api/test_open_default_inbox.c b/tests/dbus_api/test_open_default_inbox.c index 4b320ae..3cd8e95 100644 --- a/tests/dbus_api/test_open_default_inbox.c +++ b/tests/dbus_api/test_open_default_inbox.c @@ -5,26 +5,18 @@ int main (int argc, char *argv[]) { osso_context_t *osso_context; - const char *url; - gboolean ret; + gboolean ret; osso_context = osso_initialize ("test_open_default_inbox", "0.0.1", TRUE, NULL); - + if (osso_context == NULL) { g_printerr ("osso_initialize() failed.\n"); return -1; } - - if (argc == 2) { - url = argv[1]; - } else { - url = "local://???FIXME???"; - } - g_print ("Trying to open the default inbox:\n", url); ret = libmodest_dbus_client_open_default_inbox (osso_context); if (!ret) { @@ -32,7 +24,6 @@ main (int argc, char *argv[]) } else { g_print ("libmodest_dbus_client_open_default_inbox() succeeded.\n"); } - - return ret ? 0 : -1; + return ret ? 0 : -1; }