scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 80377c6fcfdb4be8a404ed06637d6b28dbb75bdc
parent aaa548221b74fa85d0ff4f469eed11d0b70c91d3
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri,  1 Oct 2021 17:32:50 +0200

tests/libc: Remove strnlen() test

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

Diffstat:
Dtests/libc/execute/0022-strnlen.c | 23-----------------------
Mtests/libc/execute/libc-tests.lst | 1-
2 files changed, 0 insertions(+), 24 deletions(-)

diff --git a/tests/libc/execute/0022-strnlen.c b/tests/libc/execute/0022-strnlen.c @@ -1,23 +0,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; -} diff --git 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