From: Krzysztof Jackiewicz Date: Tue, 7 May 2013 08:28:13 +0000 (+0200) Subject: Second app_install attempt should succeeed X-Git-Tag: security-manager_5.5_testing~422 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1db78cf329f8d480d7b2908d3b956ae12670c5b2;p=platform%2Fcore%2Ftest%2Fsecurity-tests.git Second app_install attempt should succeeed [Issue#] N/A [Problem] Test fails since multiple app_install calls have been allowed [Cause] Test was not updated [Solution] Test updated [Verification] libprivilege-control-test --regexp=app_install Change-Id: I23ee02848e43001376b90f50d3e746d9d56f119d --- diff --git a/tests/libprivilege-control-tests/test_cases.cpp b/tests/libprivilege-control-tests/test_cases.cpp index c786078c..cbe8027d 100644 --- a/tests/libprivilege-control-tests/test_cases.cpp +++ b/tests/libprivilege-control-tests/test_cases.cpp @@ -888,9 +888,9 @@ RUNNER_TEST(privilege_control01_app_install) close(fd); free(path); - // try install second time app with the same ID - it should failed with -1 (Errno: File exists). + // try install second time app with the same ID - it should pass. result = app_install(APP_ID); - RUNNER_ASSERT_MSG(result == -1, "app_install returned " << result <<". Errno: " << strerror(errno)); + RUNNER_ASSERT_MSG(result == 0, "app_install returned " << result <<". Errno: " << strerror(errno)); } /*