Hi Victor, thanks for the report!

On Tuesday 02 of June 2015 12:01:31 Victor Rodriguez wrote:
> Aparently there is a bug in build time test of cpio:
> 
> ## ------------------------- ##
> ## GNU cpio 2.11 test suite. ##
> ## ------------------------- ##
>   1: cpio version                                    ok
>   2: basic functionality: copyin/copyout             ok
>   3: symlink                                         ok
>   4: interdir                                        ok
>   5: symlink-bad-length                              FAILED
> [...]
>
> --- -   2015-06-02 09:55:31.243497680 +0000
> +++ /builddir/build/BUILD/cpio-2.11/tests/testsuite.dir/at-groups/5/stdout
>      2015-06-02 09:55:31.241557412 +0000
> @@ -1,2 +1,2 @@
> --rw-rw-r--   1 10029    10031          13 Nov 25 11:52 FILE
> +-rw-rw-r--   1 10029    10031          13 Nov 25  2014 FILE
> [....]
> Hope it helps
> 
> Thanks a lot for the help

It helps, reproducible.  You can safely ignore the error as the output of
cpio is expected:
http://git.savannah.gnu.org/cgit/cpio.git/tree/src/copyin.c?id=f6a8a2cbd2#n766

The attached patch should fix this 'make check' fail.

Pavel
>From bebf9662c406d1d137a66c567d8748b489d352e7 Mon Sep 17 00:00:00 2001
From: Pavel Raiskup <prais...@redhat.com>
Date: Thu, 4 Jun 2015 13:27:42 +0200
Subject: [PATCH] tests: fix expected output for old file

Thanks Victor Rodriguez.  Upstream thread:
http://lists.gnu.org/archive/html/bug-cpio/2015-06/msg00000.html

* tests/symlink-bad-length.at (STDOUT): Expect the year string
'2014' is printed and not time because the file in archive is
older than 6 months.
* Thanks: Mention Victor.
---
 THANKS                      | 1 +
 tests/symlink-bad-length.at | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/THANKS b/THANKS
index 45b0dfb..3228df9 100644
--- a/THANKS
+++ b/THANKS
@@ -23,6 +23,7 @@ Mitsuru Chinen		<mchi...@yamato.ibm.com>
 Peter Breitenlohner     <p...@mppmu.mpg.de>
 Peter Vrabec            <pvra...@redhat.com>
 Robert Millan           <r...@aybabtu.com>
+Victor Rodriguez        <vm.ro...@gmail.com>
 
 Local Variables:
 mode: Fundamental
diff --git a/tests/symlink-bad-length.at b/tests/symlink-bad-length.at
index e1a7093..2cdc692 100644
--- a/tests/symlink-bad-length.at
+++ b/tests/symlink-bad-length.at
@@ -57,7 +57,7 @@ cat stderr | grep -v \
 echo >&2 STDERR
 ],
 [0],
-[-rw-rw-r--   1 10029    10031          13 Nov 25 11:52 FILE
+[-rw-rw-r--   1 10029    10031          13 Nov 25  2014 FILE
 ],[STDERR
 ])
 
-- 
2.1.0

Reply via email to