aboutsummaryrefslogtreecommitdiff
path: root/tests/test_conda.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2024-11-06 08:55:52 -0500
committerGitHub <noreply@github.com>2024-11-06 08:55:52 -0500
commit52e6d0f495023c0aa939bf6b2170ca5ea853202b (patch)
tree897a87316c280b6824892368662afcb848de1cf6 /tests/test_conda.c
parent6db1b15b5c62d6fb52825c1d833ac8dfa9a49fbb (diff)
parent46ae10e55603b8852612ebe12c7636c2b358bdd6 (diff)
downloadstasis-52e6d0f495023c0aa939bf6b2170ca5ea853202b.tar.gz
Merge pull request #67 from jhunkeler/safety-and-convenience
Safety and convenience
Diffstat (limited to 'tests/test_conda.c')
-rw-r--r--tests/test_conda.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_conda.c b/tests/test_conda.c
index 84f98bc..63a2781 100644
--- a/tests/test_conda.c
+++ b/tests/test_conda.c
@@ -202,7 +202,11 @@ int main(int argc, char *argv[]) {
test_delivery_gather_tool_versions,
};
- const char *ws = "workspace";
+ char ws[] = "workspace_XXXXXX";
+ if (!mkdtemp(ws)) {
+ perror("mkdtemp");
+ exit(1);
+ }
getcwd(cwd_start, sizeof(cwd_start) - 1);
mkdir(ws, 0755);
chdir(ws);