aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-01-08 16:42:05 -0600
committerTed Gould <ted@canonical.com>2009-01-08 16:42:05 -0600
commitfc3c5b99d0f8c7dc63e677fb18742598a50482ff (patch)
tree104413d72181747ce2a6221f615f80741c6019d3
parent7e75808fd0afe3dda6aa813ccf9fdb82cab11466 (diff)
downloadlibayatana-indicator-fc3c5b99d0f8c7dc63e677fb18742598a50482ff.tar.gz
libayatana-indicator-fc3c5b99d0f8c7dc63e677fb18742598a50482ff.tar.bz2
libayatana-indicator-fc3c5b99d0f8c7dc63e677fb18742598a50482ff.zip
Adding in a simple program to crash after 15 seconds. Now we can add indicators to it.
-rw-r--r--libindicate/tests/indicate-and-crash.c16
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;
+}