Home GnuPG
Diffusion GnuPG a30359cecb5b

common: More heavy test condition for t-dotlock.c.

Description

common: More heavy test condition for t-dotlock.c.

* common/t-dotlock.c (lock_and_unlock): Use usleep and faster.
Loop at least once.  Use getrandom for random time.
(main): Add new option --one-shot to run lock/unlock once.
  • GnuPG-bug-id: T5884
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Mar 18 2022, 2:53 AM
Parents
rGc6dd9ff92904: scd: Fix DEVINFO with no --watch.
Branches
Unknown
Tags
Unknown
Tasks
T5884: dotlock is not perfect (errornously remove .lock as stale lockfile)