未验证 提交 b3306bb7 编写于 作者: O openharmony_ci 提交者: Gitee

!775 fix :修复沙盒ut

Merge pull request !775 from Mupceet/fix_init_ut
......@@ -143,7 +143,7 @@ cJSON *MakeSandboxJson(const char *sandboxFileName, const int MODE)
bool MakeFileByJson(cJSON * mJson, const char *sandboxFileName)
{
const std::string sandboxJsonPth = std::string("/etc/sandbox/") + std::string(TEST_SANDBOX_NAME);
const std::string sandboxJsonPth = std::string("/etc/sandbox/") + std::string(sandboxFileName);
const char* cSandboxJsonPth = sandboxJsonPth.c_str();
int fd = open(cSandboxJsonPth, O_RDWR | O_CREAT | O_TRUNC | O_CLOEXEC, 0644);
if (fd < 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册