Control: tags -1 fixed-upstream

On 2024-05-05 Andreas Metzler <ametz...@bebt.de> wrote:
> On 2024-05-04 Santiago Vila <sanv...@debian.org> wrote:
> > found 1064486 0.16.3-1
> > tags 1064486 + ftbfs bookworm trixie sid
> > thanks

> > El 20/4/24 a las 14:12, Andreas Metzler escribió:
> > > FWIW I also get testsuite errors on current sid on amd64
> > > The following tests FAILED:
> > >           83 - rnp_tests.test_ffi_decrypt_wrong_mpi_bits (Failed)
> > >           90 - rnp_tests.test_ffi_security_profile (Failed)
> > >          174 - rnp_tests.test_key_add_userid (Failed)
> > >          254 - cli_tests-EncryptElgamal (Failed)

> > Hello. This is also happening in bookworm, I assume that for the same 
> > underlying reason,
> > so I'm adding the bookworm version.
> [...]

> Hmm. Perhaps a timebomb, i.e. one of the keys used in the testsuite
> expired.


Hello,

Indeed it is a timebomb. Since 0.17.1 works I had a look at
git log src/tests/key-add-userid.cpp
and found

commit 07745e2e5fa6078b95fb5c24575929eb2a19ca03
Author: Nickolay Olshevsky <o.nicko...@gmail.com>
Date:   Fri Jan 19 16:05:32 2024 +0200

    Update tests to match SHA1 cutoff date for key signatures.
[...]
     selfsig0.primary = false;
+    auto curtime = global_ctx.time();
+    global_ctx.set_time(curtime > SHA1_KEY_FROM ? SHA1_KEY_FROM - 100 : 0);


SHA1_KEY_FROM is #defined in src/tests/support.h to 1705629600, which
was Fri Jan 19 03:00:00 CET 2024.

cu Andreas
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'

Reply via email to