Home
       tests/libc: Remove 2nd test of 0017-strerror - scc - simple c99 compiler
  HTML git clone git://git.simple-cc.org/scc
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
   DIR README
   DIR LICENSE
       ---
   DIR commit 5cc95d70ec0a2797cc70e3900f0cb4e18e0c9adf
   DIR parent 73eaa8badc9c987348ad6e739bc424ef959d9cb3
  HTML 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:
         M tests/libc/execute/0017-strerror.c  |      16 ----------------
       
       1 file changed, 0 insertions(+), 16 deletions(-)
       ---
   DIR 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;