diff options
author | Joseph Hunkeler <jhunkeler@users.noreply.github.com> | 2025-02-12 17:04:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-12 17:04:01 -0500 |
commit | 09de456a667a771348c3f1c9b0bd56afe4b8d3bd (patch) | |
tree | aedfcbb0b2876e3d7aad28a7cc09354a611c156e /tests/test_environment.c | |
parent | 2bd06b22e455fa154e7db27677421c8b53cbf43c (diff) | |
parent | 4e22506e086e02ffe3056c6fd39ccb201fd358c8 (diff) | |
download | stasis-09de456a667a771348c3f1c9b0bd56afe4b8d3bd.tar.gz |
Merge pull request #89 from jhunkeler/huge-changeset
Huge changeset
Diffstat (limited to 'tests/test_environment.c')
-rw-r--r-- | tests/test_environment.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_environment.c b/tests/test_environment.c index 134d061..43c3672 100644 --- a/tests/test_environment.c +++ b/tests/test_environment.c @@ -1,6 +1,6 @@ #include "testing.h" -extern char **environ; + void test_runtime_copy() { RuntimeEnv *env = runtime_copy(environ); @@ -27,7 +27,7 @@ void test_runtime_copy_empty() { void test_runtime() { RuntimeEnv *env = runtime_copy(environ); runtime_set(env, "CUSTOM_KEY", "Very custom"); - ssize_t idx = -1; + ssize_t idx; STASIS_ASSERT((idx = runtime_contains(env, "CUSTOM_KEY")) >= 0, "CUSTOM_KEY should exist in object"); STASIS_ASSERT(strcmp(strlist_item(env, idx), "CUSTOM_KEY=Very custom") == 0, "Incorrect index returned by runtime_contains"); |