aboutsummaryrefslogtreecommitdiff
path: root/tests/test_conda.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2025-02-12 17:04:01 -0500
committerGitHub <noreply@github.com>2025-02-12 17:04:01 -0500
commit09de456a667a771348c3f1c9b0bd56afe4b8d3bd (patch)
treeaedfcbb0b2876e3d7aad28a7cc09354a611c156e /tests/test_conda.c
parent2bd06b22e455fa154e7db27677421c8b53cbf43c (diff)
parent4e22506e086e02ffe3056c6fd39ccb201fd358c8 (diff)
downloadstasis-09de456a667a771348c3f1c9b0bd56afe4b8d3bd.tar.gz
Merge pull request #89 from jhunkeler/huge-changeset
Huge changeset
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 63a2781..81f593f 100644
--- a/tests/test_conda.c
+++ b/tests/test_conda.c
@@ -43,6 +43,8 @@ void test_conda_installation() {
delivery_get_conda_installer_url(&ctx, install_url);
delivery_get_conda_installer(&ctx, install_url);
delivery_install_conda(ctx.conda.installer_path, ctx.storage.conda_install_prefix);
+
+ guard_free(install_url);
STASIS_ASSERT_FATAL(access(ctx.storage.conda_install_prefix, F_OK) == 0, "conda was not installed correctly");
STASIS_ASSERT_FATAL(conda_activate(ctx.storage.conda_install_prefix, "base") == 0, "unable to activate base environment");
STASIS_ASSERT_FATAL(conda_exec("info") == 0, "conda was not installed correctly");
@@ -155,7 +157,9 @@ void test_pip_index_provides() {
void test_conda_get_active_environment() {
conda_activate(ctx.storage.conda_install_prefix, "base");
- STASIS_ASSERT(strcmp(conda_get_active_environment(), "base") == 0, "base environment not active");
+ char *active_env = conda_get_active_environment();
+ STASIS_ASSERT(strcmp(active_env, "base") == 0, "base environment not active");
+ guard_free(active_env);
}
void test_conda_provides() {