gpgscm: Make test cleanup more robust.

Authored by justus on Mar 23 2017, 10:55 AM.

Description

gpgscm: Make test cleanup more robust.

* tests/gpgscm/tests.scm (mkdtemp-autoremove): New function that
cleans up at interpreter shutdown.
(run-tests-parallel): Use the new function.
(run-tests-sequential): Likewise.
(make-environment-cache): Execute setup with an temporary working
directory.

Make sure to remove all resources created in the filesystem even if
the test runner is interrupted. Make sure to remove anything that the
setup script creates.

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

Details

Committed
justusMar 23 2017, 3:56 PM
Parents
rE8835ee681f5a: tests,w32: Use GetTempPath to get the path for temporary files.
Branches
Unknown
Tags
Unknown