summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorShaun McCance <shaunm@gnome.org>2009-10-27 01:00:58 -0500
committerShaun McCance <shaunm@gnome.org>2009-10-27 01:00:58 -0500
commitf3bc727b75592bdee2a3b09ac32259994752ddfc (patch)
tree78ac9c801274eb350444cf6849f874884105cf15 /tests
parentc73581c8c1c3f42c9e5d1475324002a46a8ca7c0 (diff)
downloadyelp-f3bc727b75592bdee2a3b09ac32259994752ddfc.tar.gz
[libyelp] Various race conditions and premature frees fixed.
It's hard, but not impossible, for a human to trigger these under normal circumstances. I know there's at least one more hiding somewhere. Try double-clicking links.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-view.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/test-view.c b/tests/test-view.c
index 57897bca..3858e37b 100644
--- a/tests/test-view.c
+++ b/tests/test-view.c
@@ -32,6 +32,10 @@ static void
activate_cb (GtkEntry *entry,
YelpView *view)
{
+ /* I put in the double-load to test some race condition bugs.
+ * I decided to leave it in.
+ */
+ yelp_view_load (view, gtk_entry_get_text (entry));
yelp_view_load (view, gtk_entry_get_text (entry));
}
@@ -83,8 +87,13 @@ main (int argc, char **argv)
g_signal_connect (entry, "activate", activate_cb, view);
- if (argc >= 2)
+ if (argc >= 2) {
+ /* I put in the double-load to test some race condition bugs.
+ * I decided to leave it in.
+ */
+ yelp_view_load (view, argv[1]);
yelp_view_load (view, argv[1]);
+ }
gtk_widget_show_all (GTK_WIDGET (window));