summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorPascal Bellard2010-10-18 00:54:51 +0200
committerDenys Vlasenko2010-10-18 00:54:51 +0200
commit873bb31d1703aae080d1928b5928c0011a944485 (patch)
treef3199f7bbab43ecc1ee020ec20e7ccb342060d53 /testsuite
parentcadf90184c2c74e2c37161efe55cd05fb04e0c59 (diff)
downloadbusybox-873bb31d1703aae080d1928b5928c0011a944485.zip
busybox-873bb31d1703aae080d1928b5928c0011a944485.tar.gz
cpio: avoid 'not created: newer or same age file exists' message for dirs
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/cpio.tests10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/cpio.tests b/testsuite/cpio.tests
index 05b92db..4cd441a 100755
--- a/testsuite/cpio.tests
+++ b/testsuite/cpio.tests
@@ -116,6 +116,16 @@ link
" "" ""
SKIP=
+# avoid 'not created: newer or same age file exists' message for directories
+rm -rf cpio.testdir cpio.testdir2 2>/dev/null
+mkdir cpio.testdir
+testing "cpio extracts in existing directory" \
+"$ECHO -ne '$hexdump' | bzcat | cpio -id 2>&1; echo \$?" \
+"\
+1 blocks
+0
+" "" ""
+SKIP=
# Clean up
rm -rf cpio.testdir cpio.testdir2 2>/dev/null