From 057a9843b8a38c8d895554c1bf89cba0f77af9d2 Mon Sep 17 00:00:00 2001 From: "Zyad A. Ali" Date: Mon, 13 Sep 2021 08:45:18 +0200 Subject: Run proc's static-file tests in a container. Some /proc files are static in gVisor, but can be updated in native linux. To test the values of these files, move them to a separate test and run it using "container" tag to avoid faulty comparisons in native. Since a separate IPC namespace is used, update shm comparisons to check the actual value, not an interval. --- test/syscalls/linux/BUILD | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'test/syscalls/linux/BUILD') diff --git a/test/syscalls/linux/BUILD b/test/syscalls/linux/BUILD index 5efb3e620..a8915a743 100644 --- a/test/syscalls/linux/BUILD +++ b/test/syscalls/linux/BUILD @@ -1792,6 +1792,20 @@ cc_binary( ], ) +cc_binary( + name = "proc_defaults_test", + testonly = 1, + srcs = ["proc_defaults.cc"], + linkstatic = 1, + deps = [ + "@com_google_absl//absl/strings", + gtest, + "//test/util:fs_util", + "//test/util:test_main", + "//test/util:test_util", + ], +) + cc_binary( name = "proc_net_test", testonly = 1, -- cgit v1.2.3