aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 f754685..85cb924 100644
--- a/tests/test-loader.c
+++ b/tests/test-loader.c
@@ -2,6 +2,14 @@
#include "libindicator/indicator-object.h"
void
+test_loader_filename_bad (void)
+{
+ IndicatorObject * object = indicator_object_new_from_file("/this/file/should/not/exist.so");
+ g_assert(object == NULL);
+ return;
+}
+
+void
destroy_cb (gpointer data, GObject * object)
{
gboolean * bob = (gboolean *)data;
@@ -28,6 +36,7 @@ void
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);
return;
}