summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTing-Yu Wang <anivia@google.com>2020-06-23 16:05:39 -0700
committergVisor bot <gvisor-bot@google.com>2020-06-23 16:07:26 -0700
commit793edf4cb4597751b7f2b7b913a5ab7fa3d50373 (patch)
treefd349a9890280a6752b7344dffb08317eff55bd1
parentedea9a8d02d9877a05bb14046a26ebd9633f34f6 (diff)
Deflake proc test: Don't fail on DT_UNKNOWN.
Per manual page: "All applications must properly handle a return of DT_UNKNOWN." PiperOrigin-RevId: 317957013
-rw-r--r--test/syscalls/linux/proc.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/test/syscalls/linux/proc.cc b/test/syscalls/linux/proc.cc
index 923699ed3..da8f30f32 100644
--- a/test/syscalls/linux/proc.cc
+++ b/test/syscalls/linux/proc.cc
@@ -1998,8 +1998,6 @@ void CheckDuplicatesRecursively(std::string path) {
}
children.insert(std::string(dp->d_name));
- ASSERT_NE(dp->d_type, DT_UNKNOWN);
-
if (dp->d_type == DT_DIR) {
child_dirs.push_back(std::string(dp->d_name));
}