shithub: scc

Download patch

ref: 0633388fa13c07679a63a5b6568d22451c738b27
parent: 0fb36627230e9c8defd681c61e4917a140fcc03f
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Fri Oct 1 13:32:50 EDT 2021

tests/libc: Remove strnlen() test

Strnlen() is not defined in C99 and it was removed from
the source code long time ago.

--- a/tests/libc/execute/0022-strnlen.c
+++ /dev/null
@@ -1,23 +1,0 @@
-#include <assert.h>
-#include <stdio.h>
-#include <string.h>
-
-/*
-output:
-testing
-done
-end:
-*/
-
-int
-main()
-{
-	puts("testing");
-	assert(strnlen("", 2) == 0);
-	assert(strnlen("abc", 10) == 3);
-	assert(strnlen((char[3]) {"abc"}, 3) == 3);
-	assert(strnlen("abc", 2) == 2);
-	puts("done");
-
-	return 0;
-}
--- a/tests/libc/execute/libc-tests.lst
+++ b/tests/libc/execute/libc-tests.lst
@@ -19,7 +19,6 @@
 0019-strncat
 0020-strncmp
 0021-strncpy
-0022-strnlen
 0023-strpbrk
 0024-strrchr
 0025-strspn