summaryrefslogtreecommitdiff
path: root/test/endless/test-window.c
diff options
context:
space:
mode:
authorJuan Pablo Ugarte <juanpablougarte@gmail.com>2018-06-12 16:20:58 -0300
committerGitHub <noreply@github.com>2018-06-12 16:20:58 -0300
commit2110eb3bf6a60440bacfcfffde50b1fcaa4e7eef (patch)
tree0dba6399db901b5800e4651baa679e81416d32d7 /test/endless/test-window.c
parent7e456e2a5534aa2617465b98ae551b8d26e7bf58 (diff)
parent23531cce8a9027f4df6376a4e26450c237352579 (diff)
Merge pull request #4184 from endlessm/T22827
Fix broken tests
Diffstat (limited to 'test/endless/test-window.c')
-rw-r--r--test/endless/test-window.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/endless/test-window.c b/test/endless/test-window.c
index a6fc28a..cb061b4 100644
--- a/test/endless/test-window.c
+++ b/test/endless/test-window.c
@@ -26,14 +26,14 @@ test_assign_application (GApplication *app)
static void
test_application_not_null (GApplication *app)
{
- /* Unix-only test */
- if (g_test_trap_fork(0 /* timeout */, G_TEST_TRAP_SILENCE_STDERR))
+ if (g_test_subprocess ())
{
GtkWidget *win = eos_window_new (NULL);
gtk_widget_destroy (win);
- exit (0);
+ return;
}
+ g_test_trap_subprocess (NULL, 0, 0);
g_test_trap_assert_failed ();
g_test_trap_assert_stderr (EXPECTED_NULL_APPLICATION_ERRMSG);