tests: Implement interpreter shutdown using exceptions.
authorJustus Winter <justus@g10code.com>
Mon, 19 Sep 2016 16:42:36 +0000 (18:42 +0200)
committerJustus Winter <justus@g10code.com>
Mon, 19 Sep 2016 16:49:17 +0000 (18:49 +0200)
commit9a0659a65c52378de1c4736a0eddf8518eb20948
treeca0187e499e303017f69f9ba5631b50439544509
parent58007e52593e6b0f838de2e464ceeacf22757018
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>
tests/gpgscm/ffi.c
tests/gpgscm/ffi.scm