Modify test app to handle error from set and/or condition accepted/tizen/unified/20191014.005013 submit/tizen/20191011.095843
authorAbhay Agarwal <ay.agarwal@samsung.com>
Fri, 11 Oct 2019 08:11:35 +0000 (17:11 +0900)
committersaerome.kim <saerome.kim@samsung.com>
Fri, 11 Oct 2019 09:56:44 +0000 (18:56 +0900)
Change-Id: I36b41ba265fc3db20412c496c2c151549be16caf
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
packaging/capi-network-ua.spec
test/uat-detections.c

index d4e3004c27d4f68a4b5a34821c4d8510ac503918..41ee5fa94d687d0819de47dce99a17ad12a318f1 100644 (file)
@@ -1,6 +1,6 @@
 Name: capi-network-ua
 Summary: User Awareness Framework CAPI
-Version: 0.11.7
+Version: 0.11.8
 Release: 1
 License: Apache-2.0
 Source0: %{name}-%{version}.tar.gz
index 55209703036ccca6f434e339f02f04b5eff97989..95cc1fa6b5741fa017a2b4cccc375bfb8174691d 100644 (file)
@@ -382,6 +382,10 @@ static int run_ua_monitor_start_presence_detection(
        ret = ua_monitor_set_user_presence_condition(g_ua_mon_h,
                bitmask_and, bitmask_or, conjunction_op);
 
+       if (UA_ERROR_NONE != ret)
+               msgr(" - ua_monitor_set_user_presence_condition() ret: [0x%X] [%s]",
+                       ret, uat_get_error_str(ret));
+
        if (strlen(g_presence_type))
                detection_mode = (unsigned char)strtol(g_presence_type, NULL, 10);
 
@@ -441,6 +445,10 @@ static int run_ua_monitor_start_absence_detection(
        ret = ua_monitor_set_user_absence_condition(g_ua_mon_h,
                bitmask_and, bitmask_or, conjunction_op);
 
+       if (UA_ERROR_NONE != ret)
+               msgr(" - ua_monitor_set_user_absence_condition() ret: [0x%X] [%s]",
+                       ret, uat_get_error_str(ret));
+
        ua_detection_mode_e detection_mode = UA_DETECT_MODE_INVALID;
 
        if (strlen(g_absence_type))