Skip to content

Commit

Permalink
Disable FstatfsTest.BlocksFree in statfs_test_native.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 588482056
  • Loading branch information
nixprime authored and gvisor-bot committed Dec 6, 2023
1 parent fd84b23 commit 94b0483
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/syscalls/linux/statfs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 94b0483

Please sign in to comment.