From 94b04833937ce4bb6d1bcc3aff74fe3e5280b608 Mon Sep 17 00:00:00 2001 From: Jamie Liu Date: Wed, 6 Dec 2023 11:00:24 -0800 Subject: [PATCH] Disable FstatfsTest.BlocksFree in statfs_test_native. PiperOrigin-RevId: 588482056 --- test/syscalls/linux/statfs.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/syscalls/linux/statfs.cc b/test/syscalls/linux/statfs.cc index 3b9244caf..cce3fa234 100644 --- a/test/syscalls/linux/statfs.cc +++ b/test/syscalls/linux/statfs.cc @@ -116,6 +116,10 @@ TEST(FstatfsTest, InternalDevShm) { // Tests that the number of blocks free in the filesystem, as reported by // statfs(2) updates appropriately when pages are allocated. TEST(FstatfsTest, BlocksFree) { + // This test relies on the test being the only user of the filesystem, which + // is not feasible outside of a sandbox. + SKIP_IF(!IsRunningOnGvisor()); + const std::string file_path = NewTempAbsPath(); const std::string dir = std::string(Dirname(file_path)); struct statfs st_before;