We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f04fb30 commit ee52ba9Copy full SHA for ee52ba9
1 file changed
tests/unit/syscall/src/main.cpp
@@ -1,5 +1,7 @@
1
#include <gtest/gtest.h>
2
3
+#include "capio/syscall.hpp"
4
+
5
char **build_args() {
6
char **args = (char **) malloc(3 * sizeof(uintptr_t));
7
@@ -59,7 +61,7 @@ class CapioServerEnvironment : public testing::Environment {
59
61
void SetUp() override {
60
62
if (server_pid < 0) {
63
ASSERT_NE(std::getenv("CAPIO_DIR"), nullptr);
- ASSERT_GE(server_pid = fork(), 0);
64
+ ASSERT_GE(server_pid = capio_syscall(SYS_fork), 0);
65
if (server_pid == 0) {
66
execvpe(args[0], args, envp);
67
_exit(127);
0 commit comments