summaryrefslogtreecommitdiffstats
path: root/test/string
diff options
context:
space:
mode:
Diffstat (limited to 'test/string')
-rw-r--r--test/string/Makefile37
-rw-r--r--test/string/string.c2
2 files changed, 17 insertions, 22 deletions
diff --git a/test/string/Makefile b/test/string/Makefile
index b55788fd3..9bd7d90cf 100644
--- a/test/string/Makefile
+++ b/test/string/Makefile
@@ -16,9 +16,7 @@
# along with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-TESTDIR=../
-include $(TESTDIR)/Rules.mak
-
+include ../Rules.mak
TARGETS=string string_glibc
TARGETS+=testcopy testcopy_glibc
@@ -26,48 +24,48 @@ TARGETS+=#strerror #strsignal
all: $(TARGETS)
-string: string.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak
+string: string.c Makefile $(TESTDIR)/Rules.mak
-@ echo "-------"
-@ echo " "
- -@ echo "Compiling vs uClibc: "
+ -@ echo "Compiling $@ vs uClibc: "
-@ echo " "
$(CC) $(CFLAGS) -c $< -o $@.o
$(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
$(STRIPTOOL) -x -R .note -R .comment $@
- -./$@
+ ./$@
-@ echo " "
string_glibc: string.c Makefile
-@ echo "-------"
-@ echo " "
- -@ echo "Compiling vs GNU libc: "
+ -@ echo "Compiling $@ vs glibc: "
-@ echo " "
$(HOSTCC) $(GLIBC_CFLAGS) -c $< -o $@.o
$(HOSTCC) $(GLIBC_LDFLAGS) $@.o -o $@
$(STRIPTOOL) -x -R .note -R .comment $@
- -./$@
+ ./$@
-@ echo " "
-testcopy: testcopy.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak
+testcopy: testcopy.c Makefile $(TESTDIR)/Rules.mak
-@ echo "-------"
-@ echo " "
- -@ echo "Compiling vs uClibc: "
+ -@ echo "Compiling $@ vs uClibc: "
-@ echo " "
$(CC) $(CFLAGS) -c $< -o $@.o
$(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
$(STRIPTOOL) -x -R .note -R .comment $@
- -./$@ > testcopy.out
+ ./$@ > testcopy.out
-@ echo " "
testcopy_glibc: testcopy.c Makefile
-@ echo "-------"
-@ echo " "
- -@ echo "Compiling vs GNU libc: "
+ -@ echo "Compiling $@ vs glibc: "
-@ echo " "
$(HOSTCC) $(GLIBC_CFLAGS) -c $< -o $@.o
$(HOSTCC) $(GLIBC_LDFLAGS) $@.o -o $@
$(STRIPTOOL) -x -R .note -R .comment $@
- -./$@ > testcopy.gnu.out
+ ./$@ > testcopy.gnu.out
-@ echo " "
testcopy_diff: testcopy testcopy_glibc
@@ -79,30 +77,27 @@ testcopy_diff: testcopy testcopy_glibc
-@ echo " "
-strerror: ../../libc/string/strerror.c $(TESTDIR)/Config $(TESTDIR)/Rules.mak
+strerror: ../../libc/string/strerror.c $(TESTDIR)/Rules.mak
-@ echo "-------"
-@ echo " "
- -@ echo "Compiling vs uClibc: "
+ -@ echo "Compiling $@ vs uClibc: "
-@ echo " "
$(CC) $(CFLAGS) -DCHECK_BUF -c $< -o $@.o
$(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
$(STRIPTOOL) -x -R .note -R .comment $@
- -./$@
+ ./$@
-@ echo " "
strsignal: ../../libc/string/strsignal.c
-@ echo "-------"
-@ echo " "
- -@ echo "Compiling vs uClibc: "
+ -@ echo "Compiling $@ vs uClibc: "
-@ echo " "
$(CC) $(CFLAGS) -DCHECK_BUF -c $< -o $@.o
$(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
$(STRIPTOOL) -x -R .note -R .comment $@
- -./$@
+ ./$@
-@ echo " "
-
clean:
$(RM) *.[oa] *~ core $(TARGETS) testcopy.gnu.out testcopy.out
-
-
diff --git a/test/string/string.c b/test/string/string.c
index ab041e63d..e23ee6279 100644
--- a/test/string/string.c
+++ b/test/string/string.c
@@ -1416,7 +1416,7 @@ main (void)
else
{
status = EXIT_FAILURE;
- printf("%d errors.\n", errors);
+ printf("%lu errors.\n", (unsigned long)errors);
}
return status;