scc

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

commit 5cc95d70ec0a2797cc70e3900f0cb4e18e0c9adf
parent 73eaa8badc9c987348ad6e739bc424ef959d9cb3
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 16 Oct 2024 17:03:09 +0200

tests/libc: Remove 2nd test of 0017-strerror

We don't have any warranty that all the values between 1 to
EUNKNOWN have a related string. The correct semantic is that
all the errno values returned by libc functions have a string
associated.

Diffstat:
Mtests/libc/execute/0017-strerror.c | 16----------------
1 file changed, 0 insertions(+), 16 deletions(-)

diff --git a/tests/libc/execute/0017-strerror.c b/tests/libc/execute/0017-strerror.c @@ -7,7 +7,6 @@ output: testing test1 -test2 done end: */ @@ -24,26 +23,11 @@ test1(void) printf("invalid EILSEQ string\n"); } -void -test2(void) -{ - int i; - - printf("test2\n"); -#ifdef EUNKNOWN - for (i = 1; i <= EUNKNOWN; i++) { - if (!strerror(i)) - printf("invalid string for errno=%d\n", i); - } -#endif -} - int main() { printf("testing\n"); test1(); - test2(); printf("done\n"); return 0;