summaryrefslogtreecommitdiff
path: root/testsuite/xargs
diff options
context:
space:
mode:
authorRon Yorston2018-02-09 09:52:52 +0000
committerDenys Vlasenko2018-04-09 20:35:48 +0200
commit1f27fa98380c134cd0f5f03b4cd3dfe2e83c09b7 (patch)
treea41b553f1cd5506d94a1c60951cdafbe9f6f6917 /testsuite/xargs
parent9db344a0f4ed5f6f893940b734215d05e48320e9 (diff)
downloadbusybox-1f27fa98380c134cd0f5f03b4cd3dfe2e83c09b7.zip
busybox-1f27fa98380c134cd0f5f03b4cd3dfe2e83c09b7.tar.gz
testsuite: allow tests to work in paths containing spaces
Tweak some tests so they work when the path to the test directory or $HOME contains spaces. Signed-off-by: Ron Yorston <rmy@pobox.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/xargs')
-rw-r--r--testsuite/xargs/xargs-works6
1 files changed, 4 insertions, 2 deletions
diff --git a/testsuite/xargs/xargs-works b/testsuite/xargs/xargs-works
index c95869e..a4bba76 100644
--- a/testsuite/xargs/xargs-works
+++ b/testsuite/xargs/xargs-works
@@ -1,4 +1,6 @@
+# FEATURE: CONFIG_FEATURE_XARGS_SUPPORT_ZERO_TERM
+
[ -n "$d" ] || d=..
-find "$d" -name \*works -type f | xargs md5sum > logfile.gnu
-find "$d" -name \*works -type f | busybox xargs md5sum > logfile.bb
+find "$d" -name \*works -type f -print0 | xargs -0 md5sum > logfile.gnu
+find "$d" -name \*works -type f -print0 | busybox xargs -0 md5sum > logfile.bb
diff -u logfile.gnu logfile.bb