← Commit list

1fbcb805a

Denys Vlasenko
Denys Vlasenko
2010-01-10
FAILED Duration: 31s

Subject

cpio: add a test for recent fix

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

testsuite/cpio.tests+16 -0
@@ -42,6 +42,7 @@ total 0
" \
"" ""
+
test x"$SKIP_KNOWN_BUGS" = x"" && {
# Currently fails. Numerous buglets: "1 blocks" versus "1 block",
# "1 block" must go to stderr, does not list cpio.testdir/x and cpio.testdir/y
@@ -57,6 +58,7 @@ cpio.testdir/y
"" ""
}
+
# More complex case
rm -rf cpio.testdir cpio.testdir2 2>/dev/null
mkdir cpio.testdir
@@ -82,6 +84,20 @@ total 8
" \
"" ""
+
+# Was trying to create "/usr/bin", correct is "usr/bin".
+rm -rf cpio.testdir
+testing "cpio -p with absolute paths" \
+"echo /usr/bin | cpio -dp cpio.testdir; echo \$?;
+ls cpio.testdir" \
+"\
+1 blocks
+0
+usr
+" \
+ "" ""
+
+
# Clean up
rm -rf cpio.testdir cpio.testdir2 2>/dev/null