Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
29eed1c7
Commit
29eed1c7
authored
Oct 24, 2014
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clar: use a custom temp directory name
parent
4bb6ffb6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
CMakeLists.txt
+1
-0
tests/clar/sandbox.h
+5
-0
No files found.
CMakeLists.txt
View file @
29eed1c7
...
@@ -454,6 +454,7 @@ IF (BUILD_CLAR)
...
@@ -454,6 +454,7 @@ IF (BUILD_CLAR)
SET(CLAR_RESOURCES "
${
CMAKE_CURRENT_SOURCE_DIR
}
/tests/resources
" CACHE PATH "
Path to test resources.
")
SET(CLAR_RESOURCES "
${
CMAKE_CURRENT_SOURCE_DIR
}
/tests/resources
" CACHE PATH "
Path to test resources.
")
ADD_DEFINITIONS(-DCLAR_FIXTURE_PATH=
\"
${
CLAR_FIXTURES
}
\"
)
ADD_DEFINITIONS(-DCLAR_FIXTURE_PATH=
\"
${
CLAR_FIXTURES
}
\"
)
ADD_DEFINITIONS(-DCLAR_RESOURCES=
\"
${
TEST_RESOURCES
}
\"
)
ADD_DEFINITIONS(-DCLAR_RESOURCES=
\"
${
TEST_RESOURCES
}
\"
)
ADD_DEFINITIONS(-DCLAR_TMPDIR=
\"
libgit2_tests
\"
)
INCLUDE_DIRECTORIES(
${
CLAR_PATH
}
)
INCLUDE_DIRECTORIES(
${
CLAR_PATH
}
)
FILE(GLOB_RECURSE SRC_TEST
${
CLAR_PATH
}
/*/*.c
${
CLAR_PATH
}
/*/*.h)
FILE(GLOB_RECURSE SRC_TEST
${
CLAR_PATH
}
/*/*.c
${
CLAR_PATH
}
/*/*.h)
...
...
tests/clar/sandbox.h
View file @
29eed1c7
...
@@ -72,7 +72,12 @@ static void clar_unsandbox(void)
...
@@ -72,7 +72,12 @@ static void clar_unsandbox(void)
static
int
build_sandbox_path
(
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"
;
const
char
path_tail
[]
=
"clar_tmp_XXXXXX"
;
#endif
size_t
len
;
size_t
len
;
if
(
find_tmp_path
(
_clar_path
,
sizeof
(
_clar_path
))
<
0
)
if
(
find_tmp_path
(
_clar_path
,
sizeof
(
_clar_path
))
<
0
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment