Date: Fri, 5 Nov 2010 21:47:59 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r214853 - head/tools/regression/bin/sh/builtins Message-ID: <201011052147.oA5Llxmc010160@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jilles Date: Fri Nov 5 21:47:58 2010 New Revision: 214853 URL: http://svn.freebsd.org/changeset/base/214853 Log: 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. Added: head/tools/regression/bin/sh/builtins/printf1.0 (contents, props changed) head/tools/regression/bin/sh/builtins/printf2.0 (contents, props changed) Added: head/tools/regression/bin/sh/builtins/printf1.0 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/tools/regression/bin/sh/builtins/printf1.0 Fri Nov 5 21:47:58 2010 (r214853) @@ -0,0 +1,3 @@ +# $FreeBSD$ + +[ "$(printf '%c\0%s%d' x '\' 010 | tr '\0' Z)" = 'xZ\8' ] Added: head/tools/regression/bin/sh/builtins/printf2.0 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/tools/regression/bin/sh/builtins/printf2.0 Fri Nov 5 21:47:58 2010 (r214853) @@ -0,0 +1,3 @@ +# $FreeBSD$ + +[ "$(printf '%cZ%s%d' x '\' 010)" = 'xZ\8' ]
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011052147.oA5Llxmc010160>