diff options
author | Abhay Agarwal <ay.agarwal@samsung.com> | 2019-10-11 17:11:35 +0900 |
---|---|---|
committer | saerome.kim <saerome.kim@samsung.com> | 2019-10-11 18:56:44 +0900 |
commit | 1373e030f7b07441cb247a280568a8a453daa772 (patch) | |
tree | f68266246b66ebd96ec3b7280c8e8de4355c3dd0 | |
parent | b99c4dab74f0c79ec17612db0fd3035c05f5c4e1 (diff) | |
download | user-awareness-1373e030f7b07441cb247a280568a8a453daa772.tar.gz user-awareness-1373e030f7b07441cb247a280568a8a453daa772.tar.bz2 user-awareness-1373e030f7b07441cb247a280568a8a453daa772.zip |
Modify test app to handle error from set and/or conditionsubmit/tizen/20191011.095843accepted/tizen/unified/20191014.005013
Change-Id: I36b41ba265fc3db20412c496c2c151549be16caf
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
-rw-r--r-- | packaging/capi-network-ua.spec | 2 | ||||
-rw-r--r-- | test/uat-detections.c | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/packaging/capi-network-ua.spec b/packaging/capi-network-ua.spec index d4e3004..41ee5fa 100644 --- a/packaging/capi-network-ua.spec +++ b/packaging/capi-network-ua.spec @@ -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 diff --git a/test/uat-detections.c b/test/uat-detections.c index 5520970..95cc1fa 100644 --- a/test/uat-detections.c +++ b/test/uat-detections.c @@ -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)) |