aboutsummaryrefslogtreecommitdiff
path: root/tests/test-loader.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-11-03 22:16:43 -0600
committerTed Gould <ted@canonical.com>2009-11-03 22:16:43 -0600
commit03e89036c7db8eb1afcdc39b4de81863b4ee41f4 (patch)
tree0315aaca2a1506008640232c8118da7452b74803 /tests/test-loader.c
parent1a528a74f3e4ed386f7c0325407de6f8e40c6f2a (diff)
downloadlibayatana-indicator-03e89036c7db8eb1afcdc39b4de81863b4ee41f4.tar.gz
libayatana-indicator-03e89036c7db8eb1afcdc39b4de81863b4ee41f4.tar.bz2
libayatana-indicator-03e89036c7db8eb1afcdc39b4de81863b4ee41f4.zip
Having the test expect an object, but fail when calling the functions.
Diffstat (limited to 'tests/test-loader.c')
-rw-r--r--tests/test-loader.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test-loader.c b/tests/test-loader.c
index 141ad78..263e54f 100644
--- a/tests/test-loader.c
+++ b/tests/test-loader.c
@@ -43,7 +43,9 @@ void
test_loader_filename_dummy_null (void)
{
IndicatorObject * object = indicator_object_new_from_file(BUILD_DIR "/.libs/libdummy-indicator-null.so");
- g_assert(object == NULL);
+ g_assert(object != NULL);
+ g_assert(indicator_object_get_entries(object) == NULL);
+ g_object_unref(G_OBJECT(object));
return;
}