mirror of
https://gitee.com/openharmony/startup_init
synced 2025-02-26 23:45:54 +00:00
伴随selinux的修改,更新fd[F测试程序
Signed-off-by: ljc <chengjinsong2@huawei.com>
This commit is contained in:
parent
9c0abcd8e5
commit
026f05f9d5
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user