diff options
| author | jvoisin | 2025-10-28 21:33:16 +0100 |
|---|---|---|
| committer | jvoisin | 2025-10-28 21:54:31 +0100 |
| commit | 89b628d34b1ef0423df35a72901daa194d7db956 (patch) | |
| tree | 2163e0ab79f62766a09c7057ccb508f6c60a064a /tests/test_wmemmove_static_write.c | |
| parent | a826c69242b0e87a4e5d6817b7e46ab3cdbe6284 (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_static_write.c')
| -rw-r--r-- | tests/test_wmemmove_static_write.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_wmemmove_static_write.c b/tests/test_wmemmove_static_write.c index 5255e61..7200b95 100644 --- a/tests/test_wmemmove_static_write.c +++ b/tests/test_wmemmove_static_write.c | |||
| @@ -5,12 +5,12 @@ | |||
| 5 | int main(int argc, char** argv) { | 5 | int 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"αβγδεζηθικλμνξοπρστυφχψω", 1337); | 11 | wmemmove(buffer, L"αβγδεζηθικλμνξοπρστυφχψω", 1337); |
| 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 | } |
