summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorDean Deng <deandeng@google.com>2021-01-26 12:00:04 -0800
committergVisor bot <gvisor-bot@google.com>2021-01-26 12:02:05 -0800
commit96bd076e8a002ccacc414e92c83dedf2e35ca07b (patch)
treeb5cfb25c43bd3fb37100d06340ef456ecba70993 /test
parent203890b13447a41c484bfeb737958d1ae01383c9 (diff)
Initialize timestamps for gofer synthetic children.
Contrary to the comment on the socket test, the failure was due to an issue with goferfs rather than kernfs. PiperOrigin-RevId: 353918021
Diffstat (limited to 'test')
-rw-r--r--test/syscalls/linux/socket.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/syscalls/linux/socket.cc b/test/syscalls/linux/socket.cc
index 1af72b159..b616c2c87 100644
--- a/test/syscalls/linux/socket.cc
+++ b/test/syscalls/linux/socket.cc
@@ -91,8 +91,7 @@ TEST(SocketTest, UnixSocketStat) {
EXPECT_EQ(statbuf.st_mode, S_IFSOCK | (sock_perm & ~mask));
// Timestamps should be equal and non-zero.
- // TODO(b/158882152): Sockets currently don't implement timestamps.
- if (!IsRunningOnGvisor()) {
+ if (!IsRunningWithVFS1()) {
EXPECT_NE(statbuf.st_atime, 0);
EXPECT_EQ(statbuf.st_atime, statbuf.st_mtime);
EXPECT_EQ(statbuf.st_atime, statbuf.st_ctime);