scc

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

commit 1127a487c737f972f98aeb54bd29e599e5c6af85
parent a6e12fcc40f07b3e465dba61249f86e1b2b25d38
Author: Roberto E. Vargas Caballero <k0ga@shike2.net>
Date:   Wed,  2 Apr 2025 09:42:19 +0200

tests/libc: Remove errno check

Mbstowcs() and Wctomb() are not supposed to set errno, or at
least is not required by the specification.

Diffstat:
Mtests/libc/execute/0040-wcrtomb.c | 1-
Mtests/libc/execute/0042-mbsrtowcs.c | 1-
2 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/tests/libc/execute/0040-wcrtomb.c b/tests/libc/execute/0040-wcrtomb.c @@ -85,7 +85,6 @@ tests_wctomb(void) errno = 0; r = wctomb(tp->s, tp->wc); assert(tp->r == r); - assert(tp->syserr == errno); if (tp->s && tp->r != -1) assert(!memcmp(tp->s, tp->exp, MB_CUR_MAX+1)); } diff --git a/tests/libc/execute/0042-mbsrtowcs.c b/tests/libc/execute/0042-mbsrtowcs.c @@ -107,7 +107,6 @@ tests_mbstowcs(void) r = mbstowcs(tp->wcs, tp->s, tp->n); assert(tp->r == r); - assert(tp->syserr == errno); if (tp->r >= 0) { if (tp->wcs) assert(!wcsncmp(tp->wcsexp, tp->wcs, tp->r));