aboutsummaryrefslogtreecommitdiff
path: root/tests/test-loader.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-10-11 21:50:46 -0500
committerTed Gould <ted@canonical.com>2009-10-11 21:50:46 -0500
commitccc7f82c202d8f0691fbbfbdd36d08624ae44e0c (patch)
tree8e4cf661a3088ad87fc8f5bde6746a820c3f4750 /tests/test-loader.c
parenta2f4f868e8744fd6aea1ffb0b335e70c54e039ea (diff)
downloadlibayatana-indicator-ccc7f82c202d8f0691fbbfbdd36d08624ae44e0c.tar.gz
libayatana-indicator-ccc7f82c202d8f0691fbbfbdd36d08624ae44e0c.tar.bz2
libayatana-indicator-ccc7f82c202d8f0691fbbfbdd36d08624ae44e0c.zip
using the blank dummy indicator
Diffstat (limited to 'tests/test-loader.c')
-rw-r--r--tests/test-loader.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test-loader.c b/tests/test-loader.c
index ecbf502..4b2b096 100644
--- a/tests/test-loader.c
+++ b/tests/test-loader.c
@@ -34,6 +34,14 @@ test_loader_filename_dummy_simple (void)
}
void
+test_loader_filename_dummy_blank (void)
+{
+ IndicatorObject * object = indicator_object_new_from_file(BUILD_DIR "/.libs/libdummy-indicator-blank.so");
+ g_assert(object == NULL);
+ return;
+}
+
+void
test_loader_filename_dummy_null (void)
{
IndicatorObject * object = indicator_object_new_from_file(BUILD_DIR "/.libs/libdummy-indicator-null.so");
@@ -78,6 +86,7 @@ test_loader_creation_deletion_suite (void)
g_test_add_func ("/libindicator/loader/ref_and_unref", test_loader_refunref);
g_test_add_func ("/libindicator/loader/filename_bad", test_loader_filename_bad);
g_test_add_func ("/libindicator/loader/dummy/null_load", test_loader_filename_dummy_null);
+ g_test_add_func ("/libindicator/loader/dummy/blank_load", test_loader_filename_dummy_null);
g_test_add_func ("/libindicator/loader/dummy/simple_load", test_loader_filename_dummy_simple);
g_test_add_func ("/libindicator/loader/dummy/simple_accessors", test_loader_filename_dummy_simple_accessors);