[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
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));
}
/*