diff options
author | Ted Gould <ted@canonical.com> | 2009-01-16 13:04:41 -0600 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-01-16 13:04:41 -0600 |
commit | 0eb58996c1129d57347361833e021e5a5111cd03 (patch) | |
tree | dd0c5de4e334585db05167368314fbecf71a6626 /tests/indicate-and-crash.c | |
parent | 2b6ce30681688304f321b1717cac0891882e773e (diff) | |
parent | 872812ad907aa58e02204885b12c533c2c1bec58 (diff) | |
download | libayatana-indicator-0eb58996c1129d57347361833e021e5a5111cd03.tar.gz libayatana-indicator-0eb58996c1129d57347361833e021e5a5111cd03.tar.bz2 libayatana-indicator-0eb58996c1129d57347361833e021e5a5111cd03.zip |
Getting the debian package built up so that it can have a seperate library binary package.
Diffstat (limited to 'tests/indicate-and-crash.c')
-rw-r--r-- | tests/indicate-and-crash.c | 20 |
1 files changed, 20 insertions, 0 deletions
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 <glib.h> +#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; +} |