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

!1211 伴随selinux的修改,更新fd测试程序

Merge pull request !1211 from cheng_jinsong/update_fd
......@@ -15,7 +15,6 @@ declare_args() {
enable_ohos_startup_init_feature_watcher = true
enable_ohos_startup_init_feature_deviceinfo = true
param_test = true
control_test = false
param_base_log = false
enable_ohos_startup_init_feature_ab_partition = false
......
......@@ -83,13 +83,11 @@ ohos_executable("ondemandTest") {
}
group("exectest") {
if (control_test) {
deps = [
":client",
":fd_holder_test",
":fd_holder_test.cfg",
":ondemandTest",
":server",
]
}
deps = [
":client",
":fd_holder_test",
":fd_holder_test.cfg",
":ondemandTest",
":server",
]
}
......@@ -70,13 +70,13 @@ int main(int argc, char **argv)
free(fds);
outfdCount = 0;
while (1) {
pause();
sleep(3);
}
}
char *files[] = {"/data/test/1", "/data/test/2"};
SaveFds("fd_holder_test", FD_COUNT, (char **)files);
while (1) {
pause();
sleep(3);
}
return 0;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册