aboutsummaryrefslogtreecommitdiff
path: root/tests/indicate-and-crash.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-04-27 10:42:39 -0500
committerTed Gould <ted@canonical.com>2009-04-27 10:42:39 -0500
commitd2d0c7aac15b44ca5bc876be3a402e63284512b6 (patch)
tree06294e6bfe4a1e4c2f69653302599aea70e83e3f /tests/indicate-and-crash.c
parentc292100a3d95aac71c7cb943cbd3df9a204c0a70 (diff)
parent5899a3f246b8eeac2c820013a27cde0301ad69ee (diff)
downloadlibayatana-indicator-d2d0c7aac15b44ca5bc876be3a402e63284512b6.tar.gz
libayatana-indicator-d2d0c7aac15b44ca5bc876be3a402e63284512b6.tar.bz2
libayatana-indicator-d2d0c7aac15b44ca5bc876be3a402e63284512b6.zip
Merging in the testing branch to get some tests for this guy
Diffstat (limited to 'tests/indicate-and-crash.c')
-rw-r--r--tests/indicate-and-crash.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/tests/indicate-and-crash.c b/tests/indicate-and-crash.c
deleted file mode 100644
index c002a54..0000000
--- a/tests/indicate-and-crash.c
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
-A test for libindicate to ensure its quality.
-
-Copyright 2009 Canonical Ltd.
-
-Authors:
- Ted Gould <ted@canonical.com>
-
-This program is free software: you can redistribute it and/or modify it
-under the terms of the GNU General Public License version 3, as published
-by the Free Software Foundation.
-
-This program is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranties of
-MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
-PURPOSE. See the GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License along
-with this program. If not, see <http://www.gnu.org/licenses/>.
-*/
-
-
-#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;
-}