![]() |
Arene Base
Fundamental Utilities For Safety Critical C++
|
|
inline |
construct a temporary directory within the test runtime
Constructs a temporary directory with special handling when the test binary is invoked with Bazel.
When a test is run under Bazel, Bazel defines the environment variable TEST_TMPDIR. This is guaranteed by Bazel to be unique for each invocation of bazel test and the directory where tests should create files.
This function creates a temporary directory under a root path where:
TEST_TMPDIR if it is defined;TMPDIR if it is defined;temporary_directory temporary_directory value