← Commit list

3b3d0fc53

Denys Vlasenko
Denys Vlasenko
2026-04-30
SUCCESS Duration: 144s

Subject

cpio.tests: do not use "ls" to detect that file does not exist

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
gcc -Wp,-MD,applets/.usage.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer      -Iinclude -Iinclude -o applets/usage applets/usage.c

Build Log

(log yok)

Commit Diff GitHub →

testsuite/cpio.tests+2 -2
@@ -166,14 +166,14 @@ mkdir -p cpio.testdir/extract
testing "cpio extract file outside of destination" "\
(cd cpio.testdir/prepare/inner && echo -e '../dont_write\nto_extract' | cpio -o -H newc) | (cd cpio.testdir/extract && cpio -vi 2>&1)
echo \$?
-ls cpio.testdir/dont_write 2>&1" \
+test -f cpio.testdir/dont_write || echo cpio.testdir/dont_write does not exist" \
"\
cpio: removing leading '../' from member names
dont_write
to_extract
1 blocks
0
-ls: cpio.testdir/dont_write: No such file or directory
+cpio.testdir/dont_write does not exist
" "" ""
SKIP=