projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7beb90
)
gtester: only remove source if not already dead
author
Ryan Lortie
<desrt@desrt.ca>
Wed, 23 Oct 2013 18:17:48 +0000
(14:17 -0400)
committer
Dan Winship
<danw@gnome.org>
Wed, 23 Oct 2013 19:28:06 +0000
(15:28 -0400)
Don't attempt to g_source_remove() a source for which we already returned FALSE
from the handler.
https://bugzilla.gnome.org/show_bug.cgi?id=710724
glib/gtester.c
patch
|
blob
|
history
diff --git
a/glib/gtester.c
b/glib/gtester.c
index
12f7f1a
..
507742f
100644
(file)
--- a/
glib/gtester.c
+++ b/
glib/gtester.c
@@
-421,7
+421,9
@@
launch_test_binary (const char *binary,
loop_pending = g_main_context_pending (NULL);
}
- g_source_remove (child_report_cb_id);
+ if (subtest_io_pending)
+ g_source_remove (child_report_cb_id);
+
close (report_pipe[0]);
g_test_log_buffer_free (tlb);