CKM: Additional assert for smack_new_label_from_self
[platform/core/test/security-tests.git] / src / ckm / ckm-common.cpp
index e5d993c..87c3c88 100644 (file)
@@ -56,7 +56,7 @@ CharPtr get_label()
     char* my_label = NULL;
     RUNNER_ASSERT_MSG(0 <= (ret = smack_new_label_from_self(&my_label)),
                          "Failed to get smack label for self. Error: " << ret);
-
+    RUNNER_ASSERT_MSG(my_label, "NULL smack label");
     return CharPtr(my_label, free);
 }