aboutsummaryrefslogtreecommitdiff
path: root/tests/string_tests.c
diff options
context:
space:
mode:
authorMosder <git@mosder.eu>2026-10-20 14:44:33 +0200
committerMosder <git@mosder.eu>2026-10-20 14:44:33 +0200
commitfc5f5f1f58542500734841822768267d0ece2456 (patch)
tree0501e3d718338094f58f5e6af1232ee4900372b2 /tests/string_tests.c
parentec315985c9f51c932b1177539c43a024bf58207d (diff)
feat: improved support for windows. added gating behind _WIN32 to use _ prefixed versions of functions and made it work (with limited functionality) on machines without fileno
Diffstat (limited to 'tests/string_tests.c')
-rw-r--r--tests/string_tests.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/string_tests.c b/tests/string_tests.c
index 7638f9b..41c6cd8 100644
--- a/tests/string_tests.c
+++ b/tests/string_tests.c
@@ -6,7 +6,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <unistd.h>
#include "moslib/ds/array.h"
@@ -43,7 +42,9 @@ TEST(ss_print_helper) {
}
TEST(printing) {
+#ifndef NO_FS
test_assert_out(ss_print_helper, stdout, "test");
+#endif
StringSlice ss = ss_from_str("slice");
char buf[16];