find:: get rid of nested function (it's a gcc-ism)
[oweals/busybox.git] / testsuite / cpio.tests
index 05b92dbe4ab1ea97c6d37f8585a0c128baf8c855..4cd441a60db48cb4e1587da41e52c9444c14b384 100755 (executable)
@@ -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