Spring cleaning
[platform/core/test/security-tests.git] / src / security-manager-tests / test_cases_public_sharing.cpp
index b71ad04..c4f0078 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2016-2019 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2016-2020 Samsung Electronics Co., Ltd. All rights reserved
  *
  *    Licensed under the Apache License, Version 2.0 (the "License");
  *    you may not use this file except in compliance with the License.
@@ -65,13 +65,13 @@ static void runAccessTest(uid_t uid, gid_t gid, const std::string &appId,
     if (pid == 0) {
         setLauncherSecurityAttributes(uid, gid);
         Api::prepareAppCandidate();
-        Api::prepareApp(appId.c_str());
+        Api::prepareApp(appId);
         f();
         exit(0);
     } else {
 
         waitPid(pid);
-        Api::cleanupApp(appId.c_str(), uid, pid);
+        Api::cleanupApp(appId, uid, pid);
     }
 }