aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/rt_generic.sh2
-rw-r--r--tests/test_conda.c2
-rw-r--r--tests/test_ini.c5
3 files changed, 5 insertions, 4 deletions
diff --git a/tests/rt_generic.sh b/tests/rt_generic.sh
index 600e501..df39dbd 100644
--- a/tests/rt_generic.sh
+++ b/tests/rt_generic.sh
@@ -39,7 +39,7 @@ pushd "$ws"
echo
echo "#### Contents ####"
- files=$(find stasis/*/output -type f \( -name '*.yml' -o -name '*.md' -o -name '*.stasis' \) | sort)
+ files=$(find stasis/*/output -type f \( -name '*.yml' -o -name '*.md' -o -name '*.stasis' -o -name '*.ini' \) | sort)
for x in $files; do
echo
echo "FILENAME: $x"
diff --git a/tests/test_conda.c b/tests/test_conda.c
index 49cf48b..72217fc 100644
--- a/tests/test_conda.c
+++ b/tests/test_conda.c
@@ -169,7 +169,7 @@ int main(int argc, char *argv[]) {
setenv("LANG", "C", 1);
bootstrap_build_info(&ctx);
- delivery_init(&ctx);
+ delivery_init(&ctx, INI_READ_RENDER);
STASIS_TEST_RUN(tests);
diff --git a/tests/test_ini.c b/tests/test_ini.c
index 5958cfd..7fb13a0 100644
--- a/tests/test_ini.c
+++ b/tests/test_ini.c
@@ -73,6 +73,7 @@ void test_ini_has_key() {
}
void test_ini_setval_getval() {
+ int render_mode = INI_READ_RENDER;
const char *filename = "ini_open.ini";
const char *data = "[default]\na=1\nb=2\nc=3\n[section name here]\ntest=true\n";
struct INIFILE *ini;
@@ -82,12 +83,12 @@ void test_ini_setval_getval() {
ini = ini_open(filename);
union INIVal val;
STASIS_ASSERT(ini_setval(&ini, INI_SETVAL_REPLACE, "default", "a", "changed") == 0, "failed to set value");
- STASIS_ASSERT(ini_getval(ini, "default", "a", INIVAL_TYPE_STR, &val) == 0, "failed to get value");
+ STASIS_ASSERT(ini_getval(ini, "default", "a", INIVAL_TYPE_STR, render_mode, &val) == 0, "failed to get value");
STASIS_ASSERT(strcmp(val.as_char_p, "a") != 0, "unexpected value loaded from modified variable");
STASIS_ASSERT(strcmp(val.as_char_p, "changed") == 0, "unexpected value loaded from modified variable");
STASIS_ASSERT(ini_setval(&ini, INI_SETVAL_APPEND, "default", "a", " twice") == 0, "failed to set value");
- STASIS_ASSERT(ini_getval(ini, "default", "a", INIVAL_TYPE_STR, &val) == 0, "failed to get value");
+ STASIS_ASSERT(ini_getval(ini, "default", "a", INIVAL_TYPE_STR, render_mode, &val) == 0, "failed to get value");
STASIS_ASSERT(strcmp(val.as_char_p, "changed") != 0, "unexpected value loaded from modified variable");
STASIS_ASSERT(strcmp(val.as_char_p, "changed twice") == 0, "unexpected value loaded from modified variable");
ini_free(&ini);