Home GnuPG
Diffusion GnuPG 9a0659a65c52

tests: Implement interpreter shutdown using exceptions.
9a0659a65c52Unpublished

Unpublished Commit ยท Learn More

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

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
rG58007e52593e: tests: Correctly handle exceptions in resource handling macros.
Branches
Unknown
Tags
Unknown

Event Timeline

Justus Winter <justus@g10code.com> committed rG9a0659a65c52: tests: Implement interpreter shutdown using exceptions. (authored by Justus Winter <justus@g10code.com>).Sep 19 2016, 6:49 PM