[UTC][Non-ACR][Savce fix of location-manager and capi-maps-service]
authorSusnata Sovalin <s.sovalin@samsung.com>
Mon, 23 Apr 2018 05:49:05 +0000 (11:19 +0530)
committerrandeep singh <randeep.s@samsung.com>
Mon, 23 Apr 2018 09:38:07 +0000 (09:38 +0000)
Change-Id: If52c967343f4035077d0369d65a0fe787b928b17
Signed-off-by: Susnata Sovalin <s.sovalin@samsung.com>
src/utc/capi-maps-service/utc_maps_place_category_common.c
src/utc/capi-maps-service/utc_maps_service_here.c
src/utc/location-manager/utc-location-bound.c

index 7e4d68c..9693f07 100755 (executable)
@@ -121,7 +121,8 @@ int utc_maps_place_category_clone_p(void)
 
        if (is_maps_supported) {
                maps_place_category_set_id(__pCategory, "test");
-               maps_place_category_set_name(__pCategory, "test");
+               ret = maps_place_category_set_name(__pCategory, "test");
+               ASSERT_IF_VAL_REF2(ret, is_maps_supported, MAPS_ERROR_NONE, MAPS_ERROR_NOT_SUPPORTED);
                maps_place_category_set_url(__pCategory, "test");
 
                ret = maps_place_category_clone(__pCategory, &clone_place_category);
index f3147a2..d2e924b 100755 (executable)
@@ -607,9 +607,9 @@ int utc_maps_service_geocode_inside_area_p(void)
                assert(bottom_right);
 
                ret = maps_area_create_rectangle(top_left, bottom_right, &boundary);
-
-               maps_coordinates_destroy(top_left);
-               maps_coordinates_destroy(bottom_right);
+               ret = maps_coordinates_destroy(top_left);
+               assert_eq(ret, MAPS_ERROR_NONE);
+               ret = maps_coordinates_destroy(bottom_right);
 
                assert_eq(ret, MAPS_ERROR_NONE);
                assert(boundary);
@@ -625,7 +625,7 @@ int utc_maps_service_geocode_inside_area_p(void)
                        ret = maps_area_destroy(boundary);
                        assert_eq(ret, MAPS_ERROR_NONE);
                } else {
-                       maps_area_destroy(boundary);
+                       ret = maps_area_destroy(boundary);
 
                        assert_eq(ret, MAPS_ERROR_NOT_SUPPORTED);
                }
index 82e82df..a91f706 100755 (executable)
@@ -33,7 +33,11 @@ static bool __location_bounds_cb(location_bounds_h bounds, void *user_data)
                printf("bounds ==NULL\n");
        } else {
                location_bounds_type_e type;
-               location_bounds_get_type(bounds, &type);
+               ret = location_bounds_get_type(bounds, &type);
+               if (ret != LOCATIONS_ERROR_NONE )
+               {
+                       return false;
+               }
                touch_foreach_bounds = true;
        }
        return true;