]> Git Repo - uclibc-ng.git/commitdiff
Bring into line with proper sest suite behavior
authorEric Andersen <[email protected]>
Sat, 20 Jan 2001 00:46:25 +0000 (00:46 -0000)
committerEric Andersen <[email protected]>
Sat, 20 Jan 2001 00:46:25 +0000 (00:46 -0000)
libc/string/strerror.c

index 36c467ef49154a77a6806f5f05a2d3648ec1e8a5..e157835c8e160458b916f3304fbf926cc0a36be4 100644 (file)
@@ -98,14 +98,16 @@ int main(void)
 
        p = strerror(INT_MIN);
        j = strlen(p)+1;
-       if (j > max) max = j;
-       printf("strerror.c - Test of INT_MIN: <%s>  %d\n", p, j);
+       if (j > max) {
+           max = j;
+           printf("strerror.c - Test of INT_MIN: <%s>  %d\n", p, j);
+       }
 
        if (sizeof(retbuf) != max) {
                printf("Error: strerror.c - dimension of retbuf should be = %d\n", max);
                retcode = EXIT_FAILURE;
        }
-       printf("strerror.c - dimension of retbuf correct at %d\n", max);
+       printf("Passed.\n");
 
        return retcode;
 }
This page took 0.025891 seconds and 4 git commands to generate.