mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-11-15 21:05:36 +00:00
test-application: Use dummy plugin
The test should not try communicating with any modem through ModemManager.
Fixes: #576
(cherry picked from commit e26e6640d8
)
This commit is contained in:
parent
f6a4acb3dd
commit
abfa659d16
1 changed files with 6 additions and 4 deletions
|
@ -26,12 +26,12 @@ static void
|
|||
test_application_shutdown_daemon (void)
|
||||
{
|
||||
CallsApplication *app = calls_application_new ();
|
||||
char *argv[] = { "test", "--daemon", NULL };
|
||||
char *argv[] = { "test", "--daemon", "-p", "dummy", NULL };
|
||||
int status;
|
||||
|
||||
g_idle_add (on_idle_quit, app);
|
||||
|
||||
status = g_application_run (G_APPLICATION (app), 3, argv);
|
||||
status = g_application_run (G_APPLICATION (app), G_N_ELEMENTS (argv), argv);
|
||||
g_assert_cmpint (status, ==, 0);
|
||||
|
||||
g_assert_finalize_object (app);
|
||||
|
@ -42,11 +42,12 @@ static void
|
|||
test_application_shutdown_no_daemon (void)
|
||||
{
|
||||
CallsApplication *app = calls_application_new ();
|
||||
char *argv[] = { "test", "-p", "dummy", NULL };
|
||||
int status;
|
||||
|
||||
g_idle_add (on_idle_quit, app);
|
||||
|
||||
status = g_application_run (G_APPLICATION (app), 0, NULL);
|
||||
status = g_application_run (G_APPLICATION (app), G_N_ELEMENTS (argv), argv);
|
||||
g_assert_cmpint (status, ==, 0);
|
||||
|
||||
g_assert_finalize_object (app);
|
||||
|
@ -57,11 +58,12 @@ static void
|
|||
test_application_shutdown_delayed (void)
|
||||
{
|
||||
CallsApplication *app = calls_application_new ();
|
||||
char *argv[] = { "test", "-p", "dummy", NULL };
|
||||
int status;
|
||||
|
||||
g_timeout_add_seconds (5, on_idle_quit, app);
|
||||
|
||||
status = g_application_run (G_APPLICATION (app), 0, NULL);
|
||||
status = g_application_run (G_APPLICATION (app), G_N_ELEMENTS (argv), argv);
|
||||
g_assert_cmpint (status, ==, 0);
|
||||
|
||||
g_assert_finalize_object (app);
|
||||
|
|
Loading…
Reference in a new issue