aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-10-27 23:37:52 +0000
committerUlrich Drepper <drepper@redhat.com>2000-10-27 23:37:52 +0000
commit9f6c1fc4947e0b6d007cff159166bc0373386c61 (patch)
treeacf2ed53901c12bf2fa3137cbd4515c4da9d3932 /stdlib/Makefile
parentUpdate. (diff)
downloadglibc-9f6c1fc4947e0b6d007cff159166bc0373386c61.tar.gz
glibc-9f6c1fc4947e0b6d007cff159166bc0373386c61.tar.bz2
glibc-9f6c1fc4947e0b6d007cff159166bc0373386c61.zip
Update.
* stdlib/fmtmsg.c (fmtmsg): Change output format slightly to make it look better and bring it closer to SysV behavior. * stdlib/Makefile (distribute): Add tst-fmtmsg.sh. (test-srcs): Add tst-fmtmsg. (tests): Add $(objpfx)tst-fmtmsg.out. Add rule to generate it. * stdlib/tst-fmtmsg.sh: New file. * stdlib/tst-fmtmsg.c: New file.
Diffstat (limited to 'stdlib/Makefile')
-rw-r--r--stdlib/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/stdlib/Makefile b/stdlib/Makefile
index 19e88f3aca..e9cef42f2c 100644
--- a/stdlib/Makefile
+++ b/stdlib/Makefile
@@ -49,7 +49,8 @@ routines := \
strtoimax strtoumax wcstoimax wcstoumax \
getcontext setcontext makecontext swapcontext
-distribute := exit.h grouping.h abort-instr.h isomac.c
+distribute := exit.h grouping.h abort-instr.h isomac.c tst-fmtmsg.sh
+test-srcs := tst-fmtmsg
tests := tst-strtol tst-strtod testmb testrand testsort testdiv \
test-canon test-canon2 tst-strtoll tst-environ \
tst-xpg-basename tst-random tst-bsearch tst-limits
@@ -130,10 +131,13 @@ endif
test-canon-ARGS = --test-dir=${common-objpfx}stdlib
# Run a test on the header files we use.
-tests: $(objpfx)isomac.out
+tests: $(objpfx)isomac.out $(objpfx)tst-fmtmsg.out
$(objpfx)isomac.out: $(objpfx)isomac
$(dir $<)$(notdir $<) '$(CC)' '-I../include -I.. $(+sysdep-includes)' > $<.out
$(objpfx)isomac: isomac.c
$(native-compile)
+
+$(objpfx)tst-fmtmsg.out: tst-fmtmsg.sh $(objpfx)tst-fmtmsg
+ $(SHELL) -e $< $(common-objpfx) $(common-objpfx)stdlib/