Home GnuPG

tests: Prevent rare failure of gcry_pk_decrypt test.
bfb43a17d8dbUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

tests: Prevent rare failure of gcry_pk_decrypt test.

* tests/basic.c (check_pubkey_crypt): Add special mode 1.
(main): Add option --loop.

This failure has been reported by Jussi Kivilinna. The new loop
option was needed to track that down. It took me up to 100 iterations
to trigger the bug. With the fix applied I am currently at 1000
iteration with no problems. Command line to evoke the problem was:

./basic --pubkey --verbose --loop -1 --die
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Dec 14 2013, 9:40 PM
Parents
rCffd9b2aa5abd: Minor fixes to SHA assembly implementations
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rCbfb43a17d8db: tests: Prevent rare failure of gcry_pk_decrypt test. (authored by Werner Koch <wk@gnupg.org>).Dec 14 2013, 9:42 PM