From 15da310efaad5574ca7b0fe03cb76919fdffc5ce Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Thu, 23 Jul 2020 13:56:49 -0700 Subject: Internal change. PiperOrigin-RevId: 322859907 --- test/syscalls/linux/BUILD | 1 + test/syscalls/linux/getdents.cc | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/test/syscalls/linux/BUILD b/test/syscalls/linux/BUILD index 662d780d8..66a31cd28 100644 --- a/test/syscalls/linux/BUILD +++ b/test/syscalls/linux/BUILD @@ -943,6 +943,7 @@ cc_binary( "//test/util:eventfd_util", "//test/util:file_descriptor", "//test/util:fs_util", + "@com_google_absl//absl/container:node_hash_set", "@com_google_absl//absl/strings", gtest, "//test/util:posix_error", diff --git a/test/syscalls/linux/getdents.cc b/test/syscalls/linux/getdents.cc index b147d6181..b040cdcf7 100644 --- a/test/syscalls/linux/getdents.cc +++ b/test/syscalls/linux/getdents.cc @@ -32,6 +32,7 @@ #include "gmock/gmock.h" #include "gtest/gtest.h" +#include "absl/container/node_hash_set.h" #include "absl/strings/numbers.h" #include "absl/strings/str_cat.h" #include "test/util/eventfd_util.h" @@ -393,7 +394,7 @@ TYPED_TEST(GetdentsTest, ProcSelfFd) { // Make the buffer very small since we want to iterate. typename TestFixture::DirentBufferType dirents( 2 * sizeof(typename TestFixture::LinuxDirentType)); - std::unordered_set prev_fds; + absl::node_hash_set prev_fds; while (true) { dirents.Reset(); int rv; -- cgit v1.2.3