char **permissions_1 = NULL;
char **permissions_2 = NULL;
+
const char *test_permission_name = "perm_get_permissions_test_2";
+ const char *test_permission[] = {
+ "~APP~ object\t rwxatl",
+ " \t \n",
+ "subject2\t~APP~ ltxarw",
+ "",
+ NULL
+ };
+
bool permission_found_1;
bool permission_found_2;
int result;
DB_BEGIN
- result = perm_add_api_feature(APP_TYPE_OSP, test_permission_name, (const char*[]) {
- "~APP~ object\t rwxatl",
- " \t \n",
- "subject2\t~APP~ ltxarw",
- "",
- NULL
- }, NULL, 0);
+ result = perm_add_api_feature(APP_TYPE_OSP, test_permission_name, test_permission, NULL, 0);
RUNNER_ASSERT_MSG_BT(result == PC_OPERATION_SUCCESS, "perm_add_api_feature returned: " <<
perm_strerror(result));