summaryrefslogtreecommitdiff
path: root/pkcs11/xdg-store
diff options
context:
space:
mode:
authorStef Walter <stefw@collabora.co.uk>2010-11-26 19:49:55 +0000
committerStef Walter <stefw@collabora.co.uk>2010-11-26 20:08:09 +0000
commit5488f4ac054906a5b8ab53bdecca83865d672858 (patch)
tree460be94474f7871add789f78b6ebc54242ae5cd6 /pkcs11/xdg-store
parent4c31c175231c906b73e958a0856adc1df0e98252 (diff)
downloadgnome-keyring-5488f4ac054906a5b8ab53bdecca83865d672858.tar.gz
[testing] Add function to clear scratch directory.
testing_scratch_remove_all()
Diffstat (limited to 'pkcs11/xdg-store')
-rw-r--r--pkcs11/xdg-store/tests/test-xdg-module.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkcs11/xdg-store/tests/test-xdg-module.c b/pkcs11/xdg-store/tests/test-xdg-module.c
index a3cd72d2..d2541730 100644
--- a/pkcs11/xdg-store/tests/test-xdg-module.c
+++ b/pkcs11/xdg-store/tests/test-xdg-module.c
@@ -55,6 +55,9 @@ test_xdg_module_initialize_and_enter (void)
args.pReserved = string;
args.flags = CKF_OS_LOCKING_OK;
+ /* Delete all files in this directory */
+ testing_scratch_remove_all ();
+
/* Copy files from test-data to scratch */
testing_data_to_scratch ("test-refer-1.trust", NULL);
testing_data_to_scratch ("test-certificate-1.cer", NULL);