std::string getTextFileContents(const std::string &path)
{
- std::ifstream in(path.c_str());
+ std::ifstream in(path);
if (in.fail())
return std::string();
std::stringstream ss;
for (size_t i = 0; i < THREADS; i++)
threads[i].run(i, expectedLabel);
- Api::prepareApp(app.getAppId().c_str());
+ Api::prepareApp(app.getAppId());
}
RUNNER_ASSERT_MSG(thread_errors.empty(), std::endl << thread_errors);
exit(0);
} else {
waitPid(pid);
- Api::cleanupApp(app.getAppId().c_str(), tmpUser.getUid(), pid);
+ Api::cleanupApp(app.getAppId(), tmpUser.getUid(), pid);
}
}
synchPipe.claimParentEp();
RUNNER_ASSERT_ERRNO_MSG(setLauncherSecurityAttributes(tmpUser) == 0, "launcher failed");
Api::prepareAppCandidate();
- Api::prepareApp(app.getAppId().c_str());
+ Api::prepareApp(app.getAppId());
synchPipe.post();
synchPipe.wait();
synchPipe.post();
waitPid(pid);
- Api::cleanupApp(app.getAppId().c_str(), tmpUser.getUid(), pid);
+ Api::cleanupApp(app.getAppId(), tmpUser.getUid(), pid);
}
}
synchPipe.claimParentEp();
RUNNER_ASSERT_ERRNO_MSG(setLauncherSecurityAttributes(tmpUser) == 0, "launcher failed");
Api::prepareAppCandidate();
- Api::prepareApp(app.getAppId().c_str());
+ Api::prepareApp(app.getAppId());
synchPipe.post();
synchPipe.wait();
synchPipe.post();
waitPid(pid);
- Api::cleanupApp(app.getAppId().c_str(), tmpUser.getUid(), pid);
+ Api::cleanupApp(app.getAppId(), tmpUser.getUid(), pid);
}
}
synchPipe.claimParentEp();
RUNNER_ASSERT_ERRNO_MSG(setLauncherSecurityAttributes(tmpUser) == 0, "launcher failed");
Api::prepareAppCandidate();
- Api::prepareApp(app.getAppId().c_str());
+ Api::prepareApp(app.getAppId());
synchPipe.post();
synchPipe.wait();
synchPipe.post();
waitPid(pid);
- Api::cleanupApp(app.getAppId().c_str(), tmpUser.getUid(), pid);
+ Api::cleanupApp(app.getAppId(), tmpUser.getUid(), pid);
}
}