OSDN Git Service

Fix problems with test wrapper and test compiler selection.
authorManuel Novoa III <mjn3@codepoet.org>
Mon, 19 Feb 2001 00:14:42 +0000 (00:14 -0000)
committerManuel Novoa III <mjn3@codepoet.org>
Mon, 19 Feb 2001 00:14:42 +0000 (00:14 -0000)
libc/string/strsignal.c
test/string/Makefile

index 60acc65..e7915b2 100644 (file)
@@ -122,7 +122,7 @@ int main(void)
        retcode = EXIT_SUCCESS;
 
 #if WANT_SIGLIST
-       printf("_NSIG = %d  from headers\n", _NSIG);
+       /*printf("_NSIG = %d  from headers\n", _NSIG);*/
        for ( i=0 ; sys_siglist[i] ; i++ ) {
                j = strlen(sys_siglist[i])+1;
                if (j > max) max = j;
@@ -136,13 +136,14 @@ int main(void)
        p = strsignal(INT_MIN);
        j = strlen(p)+1;
        if (j > max) max = j;
-       printf("strsignal.c - Test of INT_MIN: <%s>  %d\n", p, j);
+       /*printf("strsignal.c - Test of INT_MIN: <%s>  %d\n", p, j);*/
 
        if (sizeof(retbuf) != max) {
                printf("Error: strsignal.c - dimension of retbuf should be = %d\n", max);
                retcode = EXIT_FAILURE;
        }
-       printf("strsignal.c - dimension of retbuf correct at %d\n", max);
+       /*printf("strsignal.c - dimension of retbuf correct at %d\n", max);*/
+       printf("Passed.\n");
 
        return retcode;
 }
index 0c3af9e..1cf7682 100644 (file)
@@ -77,8 +77,8 @@ strsignal: ../../string/strsignal.c
        -@ echo " "
        -@ echo "Compiling vs uClibc: "
        -@ echo " "
-       $(CC) $(CFLAGS) -DCHECK_BUF -c $< -o $@.o
-       $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
+       $(TESTCC) $(CFLAGS) -DCHECK_BUF -c $< -o $@.o
+       $(TESTCC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
        $(STRIPTOOL) -x -R .note -R .comment $@
        -./$@
        -@ echo " "