summary refs log tree commit diff
path: root/stdio-common/tst-printf.sh
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-05-02 20:28:05 +0000
committerUlrich Drepper <drepper@redhat.com>2006-05-02 20:28:05 +0000
commitd2dc7b0816ae5901826fda33cfe19ef6f927560d (patch)
tree114880a0916f54c561278c6e9a684c934efc9fea /stdio-common/tst-printf.sh
parent1863d841f524903e79710af76790fcdbf9a92b41 (diff)
downloadglibc-d2dc7b0816ae5901826fda33cfe19ef6f927560d.tar.gz
glibc-d2dc7b0816ae5901826fda33cfe19ef6f927560d.tar.xz
glibc-d2dc7b0816ae5901826fda33cfe19ef6f927560d.zip
[BZ #2509]
	* stdio-common/vfprintf.c (process_arg): Fix reading of signed
	short and byte values from parameter list.
	* stdio-common/tst-printf.c (main): Add more tests.
	* stdio-common/tst-printf.sh: Adjust for tst-printf.c change.
Diffstat (limited to 'stdio-common/tst-printf.sh')
-rw-r--r--stdio-common/tst-printf.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/stdio-common/tst-printf.sh b/stdio-common/tst-printf.sh
index 3655558d16..04d04b20b8 100644
--- a/stdio-common/tst-printf.sh
+++ b/stdio-common/tst-printf.sh
@@ -246,6 +246,12 @@ Test ok.
 sprintf (buf, "%07Lo", 040000000000ll) = 40000000000
 printf ("%hhu", 257) = 1
 printf ("%hu", 65537) = 1
+printf ("%hhi", 257) = 1
+printf ("%hi", 65537) = 1
+printf ("%1$hhu", 257) = 1
+printf ("%1$hu", 65537) = 1
+printf ("%1$hhi", 257) = 1
+printf ("%1$hi", 65537) = 1
 --- Should be no further output. ---
 EOF
 cmp - ${common_objpfx}stdio-common/tst-printf.out > /dev/null 2>&1 ||