aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2024-08-12 15:11:17 -0400
committerGitHub <noreply@github.com>2024-08-12 15:11:17 -0400
commit95672b2e7a6cc0c07306893d5bb0b80ee3570f7a (patch)
tree7167084154e521b1c82945d7e0405dbe524074ad /include
parentdd2768ddcd61172cc58311fa51138281144397ae (diff)
downloadstasis-95672b2e7a6cc0c07306893d5bb0b80ee3570f7a.tar.gz
More unit tests (and fixing bugs) (#23)
* Add test_artifactory.c to suite * Add test_ini_getval_wrapper to ini.c * basic ini_getval_TYPE() conversion checks * bugfix: use strtof in INIVAL_TYPE_FLOAT case * Include stdio.h to pull in FILE structure * bugfix: free data at index during strlist_set operation * Previous behavior of setting the pointer to NULL introduced a subtle memory leak * Set strlist error when index it out of range * Import private delivery functions required for mock context creation * Remove static declaration * populate_delivery_cfg() * Add test_junitxml.c * Fix duplicate define value for JUNIT_RESULT_STATE_ERROR * Add static junit test data * Copy test data to current test directory
Diffstat (limited to 'include')
-rw-r--r--include/ini.h1
-rw-r--r--include/junitxml.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/include/ini.h b/include/ini.h
index 2992a37..3d0565b 100644
--- a/include/ini.h
+++ b/include/ini.h
@@ -2,6 +2,7 @@
#ifndef STASIS_INI_H
#define STASIS_INI_H
+#include <stdio.h>
#include <stddef.h>
#include <stdbool.h>
diff --git a/include/junitxml.h b/include/junitxml.h
index 504b8e4..777ee27 100644
--- a/include/junitxml.h
+++ b/include/junitxml.h
@@ -6,7 +6,7 @@
#define JUNIT_RESULT_STATE_NONE 0
#define JUNIT_RESULT_STATE_FAILURE 1
#define JUNIT_RESULT_STATE_SKIPPED 2
-#define JUNIT_RESULT_STATE_ERROR 2
+#define JUNIT_RESULT_STATE_ERROR 3
/**
* Represents a failed test case