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

!1007 修复seccomp的unittest编译报错问题

Merge pull request !1007 from 夏不白/seccomp_unittest
......@@ -255,13 +255,6 @@ ohos_unittest("init_unittest") {
]
}
if (defined(build_seccomp) && build_seccomp) {
sources += [ "seccomp/seccomp_unittest.cpp" ]
include_dirs +=
[ "//base/startup/init/interfaces/innerkits/seccomp/include" ]
deps += [ "//base/startup/init/services/modules/seccomp:seccomp_static" ]
}
if (defined(build_selinux) && build_selinux) {
sources += [ "param/selinux_unittest.cpp" ]
include_dirs += [
......
......@@ -90,7 +90,7 @@ public:
sigemptyset(&set);
sigaddset(&set, SIGCHLD);
sigprocmask(SIG_BLOCK, &set, nullptr);
if (signal(SIGCHLD, handler) == nullptr) {
if (signal(SIGCHLD, Handler) == nullptr) {
std::cout << "signal failed:" << strerror(errno) << std::endl;
}
......@@ -285,4 +285,4 @@ HWTEST_F(SeccompUnitTest, TestSetUidGidFilter, TestSize.Level1)
SeccompUnitTest test;
test.TestSystemSycall();
}
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册