diff options
Diffstat (limited to 'libindicate')
-rw-r--r-- | libindicate/tests/indicate-and-crash.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libindicate/tests/indicate-and-crash.c b/libindicate/tests/indicate-and-crash.c new file mode 100644 index 0000000..c927d77 --- /dev/null +++ b/libindicate/tests/indicate-and-crash.c @@ -0,0 +1,16 @@ + +#include <glib.h> +#include "libindicate/indicator.h" + +gboolean crashfunc (gpointer data) { *(int *)data = 5; } + +int +main (int argc, char ** argv) +{ + + g_timeout_add_seconds(15, crashfunc, NULL); + + g_main_loop_run(g_main_loop_new(NULL, FALSE)); + + return 0; +} |