From 873bb31d1703aae080d1928b5928c0011a944485 Mon Sep 17 00:00:00 2001 From: Pascal Bellard Date: Mon, 18 Oct 2010 00:54:51 +0200 Subject: cpio: avoid 'not created: newer or same age file exists' message for dirs Signed-off-by: Pascal Bellard Signed-off-by: Denys Vlasenko --- testsuite/cpio.tests | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'testsuite/cpio.tests') diff --git a/testsuite/cpio.tests b/testsuite/cpio.tests index 05b92dbe4..4cd441a60 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 -- cgit v1.2.3