diff options
Diffstat (limited to 'test/syscalls/linux/symlink.cc')
-rw-r--r-- | test/syscalls/linux/symlink.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/syscalls/linux/symlink.cc b/test/syscalls/linux/symlink.cc index aa1f32c85..f4f6ff490 100644 --- a/test/syscalls/linux/symlink.cc +++ b/test/syscalls/linux/symlink.cc @@ -231,12 +231,13 @@ TEST(SymlinkTest, PwriteToSymlink) { const int data_size = 10; const std::string data = std::string(data_size, 'a'); - EXPECT_THAT(pwrite64(fd, data.c_str(), data.size(), 0), SyscallSucceedsWithValue(data.size())); + EXPECT_THAT(pwrite64(fd, data.c_str(), data.size(), 0), + SyscallSucceedsWithValue(data.size())); ASSERT_THAT(close(fd), SyscallSucceeds()); ASSERT_THAT(fd = open(name.c_str(), O_RDONLY), SyscallSucceeds()); - char buf[data_size+1]; + char buf[data_size + 1]; EXPECT_THAT(pread64(fd, buf, data.size(), 0), SyscallSucceeds()); buf[data.size()] = '\0'; EXPECT_STREQ(buf, data.c_str()); |