From 68e1c870d3ef5db71226927aee703f2fba61cab7 Mon Sep 17 00:00:00 2001 From: Jay Zhuang Date: Wed, 1 Jul 2020 09:28:20 -0700 Subject: Add test env variable "fuchsia" ... so that Fuchsia gets the same special cases applied to gVisor in tests when this envrionment variable is set. PiperOrigin-RevId: 319239064 --- test/util/test_util.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/util/test_util.h') diff --git a/test/util/test_util.h b/test/util/test_util.h index e635827e6..109078fc7 100644 --- a/test/util/test_util.h +++ b/test/util/test_util.h @@ -195,6 +195,8 @@ namespace gvisor { namespace testing { +constexpr char kTestOnGvisor[] = "TEST_ON_GVISOR"; + // TestInit must be called prior to RUN_ALL_TESTS. // // This parses all arguments and adjusts argc and argv appropriately. @@ -215,6 +217,7 @@ namespace Platform { constexpr char kNative[] = "native"; constexpr char kPtrace[] = "ptrace"; constexpr char kKVM[] = "kvm"; +constexpr char kFuchsia[] = "fuchsia"; } // namespace Platform bool IsRunningOnGvisor(); -- cgit v1.2.3