From 1db78cf329f8d480d7b2908d3b956ae12670c5b2 Mon Sep 17 00:00:00 2001 From: Krzysztof Jackiewicz Date: Tue, 7 May 2013 10:28:13 +0200 Subject: [PATCH] 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 --- tests/libprivilege-control-tests/test_cases.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/libprivilege-control-tests/test_cases.cpp b/tests/libprivilege-control-tests/test_cases.cpp index c786078..cbe8027 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)); } /* -- 2.7.4