From 4513d3c2733e63659320a0b4e23af9bdb72440b6 Mon Sep 17 00:00:00 2001 From: Mosder Date: Tue, 6 Oct 2026 17:25:17 +0200 Subject: added a temporary fix for glibc --- tests/safe_tests.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tests/safe_tests.c') diff --git a/tests/safe_tests.c b/tests/safe_tests.c index 2a41700..25cd5f6 100644 --- a/tests/safe_tests.c +++ b/tests/safe_tests.c @@ -3,6 +3,7 @@ #include #include +#include #include TEST_HELPER(malloc_exit) { @@ -117,9 +118,11 @@ TEST(test_safe_pipe) { } TEST(test_safe_mkstemp) { - int fd = safe_mkstemp(".tmp"); + char f[128]; + strcpy(f, ".tmpXXXXXX"); + int fd = safe_mkstemp(f); test_assert(fd != -1, "Failed to create a temporary file"); - unlink(".tmp"); + unlink(f); close(fd); } -- cgit v1.2.3