Home GnuPG

tests: Implement interpreter shutdown using exceptions.

Description

tests: Implement interpreter shutdown using exceptions.

* tests/gpgscm/ffi.c (ffi_init): Rename 'exit' to '_exit'.
* tests/gpgscm/ffi.scm (*interpreter-exit*): New variable.
(throw): New function.
(exit): New function.

This allows a proper cleanup of resources.

  • Signed-off-by: Justus Winter <justus@g10code.com>

Details

Provenance
justusAuthored on Sep 19 2016, 6:42 PM
Parents
rEec34346129c7: tests: Correctly handle exceptions in resource handling macros.
Branches
Unknown
Tags
Unknown