remove CAP_MAC_OVERRIDE from app2sd-server
[platform/core/appfw/app2sd.git] / test / src / test_app2ext.c
index 32861ad..9cc64e9 100644 (file)
@@ -469,18 +469,24 @@ static int app_move()
        if (ret == APP2EXT_SD_CARD) {
                printf("pkg %s is in sd card\n", TEST_PKGNAME);
                printf("pkg %s will be moved to internal memory\n", TEST_PKGNAME);
-               ret = handle->interface.client_move(TEST_PKGNAME,
+               ret = handle->interface.client_pre_move(TEST_PKGNAME,
                        dir_list, APP2EXT_MOVE_TO_PHONE);
                print_error_code(__func__, ret);
+               ret = handle->interface.client_post_move(TEST_PKGNAME,
+                       APP2EXT_MOVE_TO_PHONE);
+               print_error_code(__func__, ret);
                ret_check = app2ext_usr_get_app_location(TEST_PKGNAME, getuid());
                if (ret_check == APP2EXT_INTERNAL_MEM)
                        printf("pkg %s is moved to internal memory\n", TEST_PKGNAME);
        } else if (ret == APP2EXT_INTERNAL_MEM) {
                printf("pkg %s is in internal memory\n", TEST_PKGNAME);
                printf("pkg %s will be moved to sd card\n", TEST_PKGNAME);
-               ret = handle->interface.client_move(TEST_PKGNAME,
+               ret = handle->interface.client_pre_move(TEST_PKGNAME,
                        dir_list, APP2EXT_MOVE_TO_EXT);
                print_error_code(__func__, ret);
+               ret = handle->interface.client_post_move(TEST_PKGNAME,
+                       APP2EXT_MOVE_TO_EXT);
+               print_error_code(__func__, ret);
                ret_check = app2ext_usr_get_app_location(TEST_PKGNAME, getuid());
                if (ret_check == APP2EXT_SD_CARD)
                        printf("pkg %s is moved to sd card\n", TEST_PKGNAME);