tests/libc: Remove errno check - scc - simple c99 compiler
 (HTM) git clone git://git.simple-cc.org/scc
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 1127a487c737f972f98aeb54bd29e599e5c6af85
 (DIR) parent a6e12fcc40f07b3e465dba61249f86e1b2b25d38
 (HTM) 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:
         M tests/libc/execute/0040-wcrtomb.c   |       1 -
         M tests/libc/execute/0042-mbsrtowcs.c |       1 -
       
       2 files changed, 0 insertions(+), 2 deletions(-)
       ---
 (DIR) 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));
                }
 (DIR) 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));