GApplication test: fix testcase to avoid fork()

The GApplication test case tried to fork() while using GMainLoop,
causing problems.  Avoid doing that by splitting the child process into
a separate program and spawning it in the usual way.

https://bugzilla.gnome.org/show_bug.cgi?id=658999
This commit is contained in:
Ryan Lortie
2011-09-14 11:06:02 -04:00
parent 01ed78d525
commit 39294664a6
4 changed files with 108 additions and 131 deletions

View File

@@ -113,6 +113,7 @@ TEST_PROGS += \
unix-fd \
unix-streams \
gapplication \
basic-application \
gdbus-test-codegen \
$(NULL)
SAMPLE_PROGS += \
@@ -378,6 +379,8 @@ file_LDADD = $(progs_ldadd)
gapplication_SOURCES = gapplication.c gdbus-sessionbus.c
gapplication_LDADD = $(progs_ldadd)
basic_application_LDADD = $(progs_ldadd)
gapplication_example_open_SOURCES = gapplication-example-open.c
gapplication_example_open_LDADD = $(progs_ldadd)