summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsanghyeok.oh <sanghyeok.oh@samsung.com>2019-09-17 10:29:42 +0900
committersanghyeok.oh <sanghyeok.oh@samsung.com>2019-09-17 10:30:13 +0900
commitd7714e80a20b7ffadcde81840d8133b232aaabaf (patch)
tree224141dcb1bade5759cec5aaffb95b19f50c2994
parentb248c3c30677542e279a25a3737758efa4ab2a6e (diff)
downloadactivationd-d7714e80a20b7ffadcde81840d8133b232aaabaf.tar.gz
activationd-d7714e80a20b7ffadcde81840d8133b232aaabaf.tar.bz2
activationd-d7714e80a20b7ffadcde81840d8133b232aaabaf.zip
Change-Id: Ice65d826b4331e3bbb2ef02a10652a7223a317e5 Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
-rw-r--r--tests/unit_tests.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/unit_tests.c b/tests/unit_tests.c
index dda9227..f6a9e32 100644
--- a/tests/unit_tests.c
+++ b/tests/unit_tests.c
@@ -123,13 +123,18 @@ static guint signal_subscribe(struct context *ctx)
NULL,
&error);
if (!msg) {
- printf("LoadUnit method call error: %s\n", error->message);
+ if (error) {
+ printf("LoadUnit method call error: %s\n", error->message);
+ g_error_free(error);
+ } else {
+ printf("LoadUnit method call error\n");
+ }
+
goto cleanup;
}
g_variant_get(msg, "(o)", &path);
- error = NULL;
/* PropertiesChanged signal subscribe */
ctx->subscription_id = g_dbus_connection_signal_subscribe(
ctx->bus,
@@ -144,7 +149,7 @@ static guint signal_subscribe(struct context *ctx)
NULL
);
if (ctx->subscription_id == 0) {
- printf("signal subscription error: %s\n", error->message);
+ printf("signal subscription error\n");
goto cleanup;
}