Home GnuPG

tests: Add a test for the internal locking
ff91ec934ed5Unpublished

Unpublished Commit · Learn More

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

Description

tests: Add a test for the internal locking

* src/global.c (external_lock_test): New.
(_gcry_vcontrol): Call new function with formerly reserved code 61.
* tests/t-common.h: New. Taken from current libgpg-error.
* tests/t-lock.c: New.  Based on t-lock.c from libgpg-error.
* configure.ac (HAVE_PTHREAD): Set macro to 1 if defined.
(AC_CHECK_FUNCS): Check for flockfile.
* tests/Makefile.am (tests_bin): Add t-lock.
(noinst_HEADERS): Add t-common.h
(LDADD): Move value to ...
(default_ldadd): new.
(t_lock_LDADD): New.

(cherry picked from commit fa42c61a84996b6a7574c32233dfd8d9f254d93a)

Resolved conflicts:

  • src/ath.c: Remove as not anymore used in 1.7.
  • tests/Makefile.am: Merge.

Changes:

  • src/global.c (external_lock_test): Use the gpgrt function for locking.

    Changed subject because here we are only adding the test case.
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Jan 9 2014, 7:14 PM
Parents
rC24e65d715812: Check compiler features only for the relevant platform.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rCff91ec934ed5: tests: Add a test for the internal locking (authored by Werner Koch <wk@gnupg.org>).Jan 24 2014, 4:01 PM