From 8f801277df211416ca9636b3d28ead43f9f50a35 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 16 Jan 2009 12:47:51 -0600 Subject: Moving the tests so that they can guarantee to build after the library builds as otherwise they end up getting built first. --- tests/indicate-and-crash.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tests/indicate-and-crash.c (limited to 'tests/indicate-and-crash.c') diff --git a/tests/indicate-and-crash.c b/tests/indicate-and-crash.c new file mode 100644 index 0000000..5a50e30 --- /dev/null +++ b/tests/indicate-and-crash.c @@ -0,0 +1,20 @@ + +#include +#include "libindicate/indicator.h" + +gboolean crashfunc (gpointer data) { *(int *)data = 5; return FALSE;} + +int +main (int argc, char ** argv) +{ + g_type_init(); + + IndicateIndicator * indicator = indicate_indicator_new(); + indicate_indicator_show(indicator); + + g_timeout_add_seconds(15, crashfunc, NULL); + + g_main_loop_run(g_main_loop_new(NULL, FALSE)); + + return 0; +} -- cgit v1.2.3