summaryrefslogtreecommitdiff
path: root/cpio
diff options
context:
space:
mode:
authorCarlos Sánchez de La Lama <csanchezdll@gmail.com>2016-10-19 09:12:18 +0200
committerCarlos Sánchez de La Lama <csanchezdll@gmail.com>2016-10-19 12:17:32 +0200
commitb63fd0d96b810b917cc684693b532c4ac7171f82 (patch)
treee23270fb105ded73f9554a19131d8c14a1034a3a /cpio
parent4c6269cb00b84270aa1e2e61d6ad41ac071b94d8 (diff)
downloadlibarchive-b63fd0d96b810b917cc684693b532c4ac7171f82.tar.gz
Issue 696: ppc64le mache ckech failure
This issue is not ppc64le specific. I have experienced on my 4.4.22-gnu #1 SMP 1 i686 GNU/Linux. Might be dependant on kernel version and/or machine load. POSIX says errors after posix_spawnp returns can be signaled by child exitting with an 127 exit code.
Diffstat (limited to 'cpio')
-rw-r--r--cpio/test/test_option_lz4.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/cpio/test/test_option_lz4.c b/cpio/test/test_option_lz4.c
index d430ac75..afd683dd 100644
--- a/cpio/test/test_option_lz4.c
+++ b/cpio/test/test_option_lz4.c
@@ -63,6 +63,13 @@ DEFINE_TEST(test_option_lz4)
"but no such program is available on this system.");
return;
}
+ /* On some systems the error won't be detected until closing
+ time, by a 127 exit error returned by waitpid. */
+ if (strstr(p, "Error closing") != NULL && !canLz4()) {
+ skipping("This version of bsdcpio uses an external lz4 program "
+ "but no such program is available on this system.");
+ return;
+ }
failure("--lz4 option is broken: %s", p);
assertEqualInt(r, 0);
return;