mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-07 16:38:43 +02:00
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:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user