[glib/application-replace] fixup! Add tests for --gapplication-replace
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/application-replace] fixup! Add tests for --gapplication-replace
- Date: Sat, 3 Nov 2018 15:38:57 +0000 (UTC)
commit d01c414bedf688dd5f1868b7506f5ca747569928
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Nov 3 11:29:17 2018 -0400
fixup! Add tests for --gapplication-replace
Avoid g_assert in tests.
gio/tests/gapplication.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gio/tests/gapplication.c b/gio/tests/gapplication.c
index 210f737ee..2e2352671 100644
--- a/gio/tests/gapplication.c
+++ b/gio/tests/gapplication.c
@@ -1066,7 +1066,7 @@ test_replace (void)
g_application_run (app, G_N_ELEMENTS (argv) -1, argv);
- g_assert (startup);
+ g_assert_true (startup);
g_object_unref (app);
g_free (binpath);
@@ -1091,8 +1091,8 @@ test_replace (void)
g_application_run (app, G_N_ELEMENTS (argv) -1, argv);
- g_assert (startup);
- g_assert (name_lost);
+ g_assert_true (startup);
+ g_assert_true (name_lost);
g_object_unref (app);
g_free (binpath);
@@ -1131,7 +1131,7 @@ test_no_replace (void)
g_application_run (app, G_N_ELEMENTS (argv) -1, argv);
- g_assert (!startup);
+ g_assert_false (startup);
g_object_unref (app);
g_free (binpath);
@@ -1157,8 +1157,8 @@ test_no_replace (void)
g_timeout_add (1000, quit_already, app);
g_application_run (app, G_N_ELEMENTS (argv) -1, argv);
- g_assert (startup);
- g_assert (!name_lost);
+ g_assert_true (startup);
+ g_assert_false (name_lost);
g_object_unref (app);
g_free (binpath);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]