Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2014-10-24 18:50:57 +0400
committerEdward Thomson <ethomson@microsoft.com>2014-10-24 18:50:57 +0400
commit29eed1c74d65efbad48aa525f551c6f94d04002c (patch)
tree52a90e2be4215a76181eb7025d916d76ce16c717 /tests/clar
parent4bb6ffb6bb8ad9d49eb173350be965183cd09c96 (diff)
clar: use a custom temp directory name
Diffstat (limited to 'tests/clar')
-rw-r--r--tests/clar/sandbox.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/clar/sandbox.h b/tests/clar/sandbox.h
index a44e29116..ea9e35ca9 100644
--- a/tests/clar/sandbox.h
+++ b/tests/clar/sandbox.h
@@ -72,7 +72,12 @@ static void clar_unsandbox(void)
static int build_sandbox_path(void)
{
+#ifdef CLAR_TMPDIR
+ const char path_tail[] = CLAR_TMPDIR "_XXXXXX";
+#else
const char path_tail[] = "clar_tmp_XXXXXX";
+#endif
+
size_t len;
if (find_tmp_path(_clar_path, sizeof(_clar_path)) < 0)