Browse Source

Bring into line with proper sest suite behavior

Eric Andersen 24 years ago
parent
commit
0f6da0c3d9
1 changed files with 5 additions and 3 deletions
  1. 5 3
      libc/string/strerror.c

+ 5 - 3
libc/string/strerror.c

@@ -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;
 }