Skip to content

Commit 869ae09

Browse files
committed
[librpbase/tests] gtest_init.cpp: Add the writev() syscall here, too.
1 parent 817c583 commit 869ae09

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/librpbase/tests/gtest_init.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ static constexpr int16_t syscall_wl_base[] = {
111111
// for posix_fadvise()
112112
SCMP_SYS(fadvise64), SCMP_SYS(fadvise64_64),
113113
SCMP_SYS(arm_fadvise64_64), // CPU-specific syscall for Linux on 32-bit ARM
114+
115+
#ifndef NDEBUG
116+
// Sometimes needed by assert().
117+
SCMP_SYS(writev),
118+
#endif /* !NDEBUG */
114119
};
115120

116121
// for Google Test Death Tests when spawning a new process

0 commit comments

Comments
 (0)