[scc-dev] [PATCH 2/3] libc/tests: add omitted headers, fix 0037-malloc's output so it passes

From: remph <lhr_at_disroot.org>
Date: Thu, 20 Feb 2025 19:32:20 +0000

---
 tests/libc/execute/0035-setlocale.c  | 1 +
 tests/libc/execute/0036-localeconv.c | 1 +
 tests/libc/execute/0037-malloc.c     | 4 +++-
 3 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/tests/libc/execute/0035-setlocale.c b/tests/libc/execute/0035-setlocale.c
index 11675dc3..25ffae99 100644
--- a/tests/libc/execute/0035-setlocale.c
+++ b/tests/libc/execute/0035-setlocale.c
_at_@ -1,6 +1,7 @@
 #include <assert.h>
 #include <locale.h>
 #include <stdio.h>
+#include <string.h>
 
 /*
 output:
diff --git a/tests/libc/execute/0036-localeconv.c b/tests/libc/execute/0036-localeconv.c
index cdb069db..05a2cbf4 100644
--- a/tests/libc/execute/0036-localeconv.c
+++ b/tests/libc/execute/0036-localeconv.c
_at_@ -2,6 +2,7 @@
 #include <limits.h>
 #include <locale.h>
 #include <stdio.h>
+#include <string.h>
 
 /*
 output:
diff --git a/tests/libc/execute/0037-malloc.c b/tests/libc/execute/0037-malloc.c
index e22d64ba..7da82b0a 100644
--- a/tests/libc/execute/0037-malloc.c
+++ b/tests/libc/execute/0037-malloc.c
_at_@ -1,9 +1,11 @@
 #include <assert.h>
 #include <stdlib.h>
+#include <stdio.h>
 
 /*
 output:
-
+testing
+done
 end:
 */
 
-- 
2.48.1
--
To unsubscribe send a mail to scc-dev+unsubscribe_at_simple-cc.org
Received on Thu 20 Feb 2025 - 20:32:20 CET

This archive was generated by hypermail 2.3.0 : Thu 20 Feb 2025 - 20:40:01 CET