Skip to content

Commit ee52ba9

Browse files
Adjust server setup function
1 parent f04fb30 commit ee52ba9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/unit/syscall/src/main.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#include <gtest/gtest.h>
22

3+
#include "capio/syscall.hpp"
4+
35
char **build_args() {
46
char **args = (char **) malloc(3 * sizeof(uintptr_t));
57

@@ -59,7 +61,7 @@ class CapioServerEnvironment : public testing::Environment {
5961
void SetUp() override {
6062
if (server_pid < 0) {
6163
ASSERT_NE(std::getenv("CAPIO_DIR"), nullptr);
62-
ASSERT_GE(server_pid = fork(), 0);
64+
ASSERT_GE(server_pid = capio_syscall(SYS_fork), 0);
6365
if (server_pid == 0) {
6466
execvpe(args[0], args, envp);
6567
_exit(127);

0 commit comments

Comments
 (0)