Home GnuPG

gpgscm: Make test cleanup more robust.

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

Provenance
justusAuthored on Mar 23 2017, 10:55 AM
Parents
rE8835ee681f5a: tests,w32: Use GetTempPath to get the path for temporary files.
Branches
Unknown
Tags
Unknown