diff options
author | Fabricio Voznika <fvoznika@google.com> | 2020-05-21 10:46:45 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-05-21 10:48:25 -0700 |
commit | 7bde26934ae6d39649a31f6c77a4bc210277085a (patch) | |
tree | 84e00e4828e8badd4e86627b09cb4b25e65e11b0 /test/util/test_util.h | |
parent | 7369aaee32398a98777162c8f9693d314053b5aa (diff) |
Add IsRunningWithVFS1 to test util
VFS2 is adding more functionality than VFS1. In order to test
new functionality, it's required to skip some tests with VFS1.
To skip tests, use:
SKIP_IF(IsRunningWithVFS1());
The test will run in Linux and gVisor with VFS2 enabled.
Updates #1035
PiperOrigin-RevId: 312698616
Diffstat (limited to 'test/util/test_util.h')
-rw-r--r-- | test/util/test_util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/util/test_util.h b/test/util/test_util.h index c5cb9d6d6..8e3245b27 100644 --- a/test/util/test_util.h +++ b/test/util/test_util.h @@ -220,6 +220,7 @@ constexpr char kKVM[] = "kvm"; bool IsRunningOnGvisor(); const std::string GvisorPlatform(); bool IsRunningWithHostinet(); +bool IsRunningWithVFS1(); #ifdef __linux__ void SetupGvisorDeathTest(); |