diff options
author | Ted Gould <ted@canonical.com> | 2009-10-08 13:00:00 -0400 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-10-08 13:00:00 -0400 |
commit | 1386478a87fd0f228dd31a00d8f3d969d6a6a98c (patch) | |
tree | 77a6361712a0a8d129e254e4a6835e3f8ebc9f33 | |
parent | c314d6040b93da70359e19a8b7475c94fc86fb1c (diff) | |
download | libayatana-indicator-1386478a87fd0f228dd31a00d8f3d969d6a6a98c.tar.gz libayatana-indicator-1386478a87fd0f228dd31a00d8f3d969d6a6a98c.tar.bz2 libayatana-indicator-1386478a87fd0f228dd31a00d8f3d969d6a6a98c.zip |
Fleshing out the test a little bit.
-rw-r--r-- | tests/Makefile.am | 6 | ||||
-rw-r--r-- | tests/test-loader.c | 24 |
2 files changed, 26 insertions, 4 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index a04855c..2779ad7 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,5 +1,5 @@ -noinst_PROGRAMS = \ +check_PROGRAMS = \ test-loader test_loader_SOURCES = \ @@ -7,10 +7,10 @@ test_loader_SOURCES = \ test_loader_CFLAGS = \ -Wall -Werror \ - $(UPANEL_CFLAGS) -I$(top_srcdir) + $(LIBINDICATOR_CFLAGS) -I$(top_srcdir) test_loader_LDADD = \ - $(UPANEL_LIBS) $(top_builddir)/libindicator/.libs/libindicator.a + $(LIBINDICATOR_LIBS) $(top_builddir)/libindicator/.libs/libindicator.a XML_REPORT = loader-check-results.xml HTML_REPORT = loader-check-results.html diff --git a/tests/test-loader.c b/tests/test-loader.c index 63590c7..7e77195 100644 --- a/tests/test-loader.c +++ b/tests/test-loader.c @@ -1,7 +1,29 @@ +#include <glib.h> +#include "libindicator/indicator-object.h" + +void +test_loader_refunref (void) +{ + + return; +} + +void +test_loader_creation_deletion_suite (void) +{ + g_test_add_func ("/libindicator/loader/ref_and_unref", test_loader_refunref); + + return; +} + int main (int argc, char ** argv) { + g_type_init (); + g_test_init (&argc, &argv, NULL); + + test_loader_creation_deletion_suite(); - return 0; + return g_test_run(); } |