summaryrefslogtreecommitdiff
path: root/tests/test_wmemmove_dynamic_write.c
diff options
context:
space:
mode:
authorjvoisin2025-10-28 21:33:16 +0100
committerjvoisin2025-10-28 21:54:31 +0100
commit89b628d34b1ef0423df35a72901daa194d7db956 (patch)
tree2163e0ab79f62766a09c7057ccb508f6c60a064a /tests/test_wmemmove_dynamic_write.c
parenta826c69242b0e87a4e5d6817b7e46ab3cdbe6284 (diff)
Fix the CI on clang
Apparently, clang doesn't like the `putwchar` function for no good reason. Replacing it with `printf` fixes a NULL-ptr deref, so let's do that, as we don't really care about the content of the buffer anyway, only that it's not optimized away.
Diffstat (limited to 'tests/test_wmemmove_dynamic_write.c')
-rw-r--r--tests/test_wmemmove_dynamic_write.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_wmemmove_dynamic_write.c b/tests/test_wmemmove_dynamic_write.c
index 5df9964..549afe3 100644
--- a/tests/test_wmemmove_dynamic_write.c
+++ b/tests/test_wmemmove_dynamic_write.c
@@ -5,12 +5,12 @@
5int main(int argc, char** argv) { 5int main(int argc, char** argv) {
6 wchar_t buffer[2] = {0}; 6 wchar_t buffer[2] = {0};
7 wmemmove(buffer, L"αβγδεζηθικλμνξοπρστυφχψω", 2); 7 wmemmove(buffer, L"αβγδεζηθικλμνξοπρστυφχψω", 2);
8 fputws(buffer, stdout); 8 printf("%ls\n", buffer);
9 9
10 CHK_FAIL_START 10 CHK_FAIL_START
11 wmemmove(buffer, L"αβγδεζηθικλμνξοπρστυφχψω", argc); 11 wmemmove(buffer, L"αβγδεζηθικλμνξοπρστυφχψω", argc);
12 CHK_FAIL_END 12 CHK_FAIL_END
13 13
14 fputws(buffer, stdout); 14 printf("%ls\n", buffer);
15 return ret; 15 return ret;
16} 16}