aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_download.c2
-rw-r--r--tests/test_environment.c2
-rw-r--r--tests/test_relocation.c4
-rw-r--r--tests/test_utils.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_download.c b/tests/test_download.c
index 31e9792..6ace119 100644
--- a/tests/test_download.c
+++ b/tests/test_download.c
@@ -21,7 +21,7 @@ void test_download() {
for (size_t i = 0; i < sizeof(tc) / sizeof(*tc); i++) {
const char *filename = "output.txt";
- char errmsg[BUFSIZ] = {0};
+ char errmsg[STASIS_BUFSIZ] = {0};
char *errmsg_p = errmsg;
long http_code = download((char *) tc[i].url, filename, &errmsg_p);
if (tc[i].errmsg) {
diff --git a/tests/test_environment.c b/tests/test_environment.c
index 9a503c0..72a938d 100644
--- a/tests/test_environment.c
+++ b/tests/test_environment.c
@@ -56,7 +56,7 @@ void test_runtime() {
STASIS_ASSERT(strcmp(global_custom_value, custom_value) == 0, "local and global CUSTOM_KEY variable are supposed to be identical");
guard_free(custom_value);
- char output_truth[BUFSIZ] = {0};
+ char output_truth[STASIS_BUFSIZ] = {0};
char *your_path = runtime_get(env, "PATH");
snprintf(output_truth, sizeof(output_truth), "Your PATH is '%s'.", your_path);
guard_free(your_path);
diff --git a/tests/test_relocation.c b/tests/test_relocation.c
index 4a02e01..891e346 100644
--- a/tests/test_relocation.c
+++ b/tests/test_relocation.c
@@ -13,7 +13,7 @@ void test_replace_text() {
for (size_t i = 0; i < sizeof(targets) / sizeof(*targets); i += 2) {
const char *target = targets[i];
const char *expected = targets[i + 1];
- char input[BUFSIZ] = {0};
+ char input[STASIS_BUFSIZ] = {0};
strncpy(input, test_string, sizeof(input) - 1);
input[sizeof(input) - 1] = '\0';
@@ -44,7 +44,7 @@ void test_file_replace_text() {
return;
}
- char input[BUFSIZ] = {0};
+ char input[STASIS_BUFSIZ] = {0};
fp = fopen(filename, "r");
if (fp) {
fread(input, sizeof(*input), sizeof(input), fp);
diff --git a/tests/test_utils.c b/tests/test_utils.c
index fd398e2..119dea3 100644
--- a/tests/test_utils.c
+++ b/tests/test_utils.c
@@ -105,7 +105,7 @@ void test_xml_pretty_print_in_place() {
}
fp = fopen(filename, "r");
- char buf[BUFSIZ] = {0};
+ char buf[STASIS_BUFSIZ] = {0};
if (fread(buf, sizeof(*buf), sizeof(buf) - 1, fp) < 1) {
STASIS_ASSERT(false, "failed to consume formatted xml file contents");
}