summaryrefslogtreecommitdiff
path: root/tests/misc/pwd-unreadable-parent
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-11-17 21:38:38 +0100
committerJim Meyering <meyering@redhat.com>2010-11-17 21:46:25 +0100
commit8f9be76b0d6995919ee960ce5864715faa11ea5b (patch)
tree94121a4b9c057ba2899e8a30e03a6e73510da716 /tests/misc/pwd-unreadable-parent
parenta8c8484ee17f09ac92a27308b6ee5eaf4304bddc (diff)
downloadcoreutils-8f9be76b0d6995919ee960ce5864715faa11ea5b.tar.xz
tests: convert the multi-prog $VERBOSE/--version uses
E.g., -test "$VERBOSE" = yes && { env -- pwd --version; readlink --version; } +print_ver_ pwd readlink -test "$VERBOSE" = yes && { stdbuf --version; mv --version; } +print_ver_ stdbuf mv Use this command: git grep -l 'VERBOSE.*--version'|xargs perl -ni \ -e '/^test "\$VERBOSE" = yes && { .*--version/ or print,next;' \ -e 's/env -- //g;' \ -e 's/test "\$VERBOSE" = yes && { /print_ver_ /;' \ -e ' s/(\w+) --version;/$1/g; s/ *}$//; print'
Diffstat (limited to 'tests/misc/pwd-unreadable-parent')
-rwxr-xr-xtests/misc/pwd-unreadable-parent2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/misc/pwd-unreadable-parent b/tests/misc/pwd-unreadable-parent
index b24a97c89..9483981b9 100755
--- a/tests/misc/pwd-unreadable-parent
+++ b/tests/misc/pwd-unreadable-parent
@@ -19,7 +19,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
-test "$VERBOSE" = yes && { env -- pwd --version; readlink --version; }
+print_ver_ pwd readlink
test $host_os != linux-gnu &&
skip_test_ 'vendor getcwd may be inadequate'