diff options
Diffstat (limited to 'test/utility/misc.c')
-rw-r--r-- | test/utility/misc.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/utility/misc.c b/test/utility/misc.c index c2af4c16470..9fb85eb4a66 100644 --- a/test/utility/misc.c +++ b/test/utility/misc.c @@ -149,6 +149,21 @@ testutil_cleanup(TEST_OPTS *opts) } /* + * testutil_disable_long_tests -- + * Check if TESTUTIL_DISABLE_LONG_TESTS is set and exit if so + */ +bool +testutil_disable_long_tests(void) +{ + const char *res; + if (__wt_getenv(NULL, + "TESTUTIL_DISABLE_LONG_TESTS", &res) == WT_NOTFOUND) + return (false); + else + return (true); +} + +/* * dcalloc -- * Call calloc, dying on failure. */ |