mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-12 09:58:36 +00:00
sh: Add simple tests for printf.
These are not meant as a replacement for tools/regression/usr.bin/printf/* but to detect errors specific to making it a shell builtin.
This commit is contained in:
parent
b38fd2d93c
commit
5aa39e6a7e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=214853
3
tools/regression/bin/sh/builtins/printf1.0
Normal file
3
tools/regression/bin/sh/builtins/printf1.0
Normal file
@ -0,0 +1,3 @@
|
||||
# $FreeBSD$
|
||||
|
||||
[ "$(printf '%c\0%s%d' x '\' 010 | tr '\0' Z)" = 'xZ\8' ]
|
3
tools/regression/bin/sh/builtins/printf2.0
Normal file
3
tools/regression/bin/sh/builtins/printf2.0
Normal file
@ -0,0 +1,3 @@
|
||||
# $FreeBSD$
|
||||
|
||||
[ "$(printf '%cZ%s%d' x '\' 010)" = 'xZ\8' ]
|
Loading…
Reference in New Issue
Block a user