[gmime] Removed debugging cruft from testsuite.c
- From: Jeffrey Stedfast <fejj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gmime] Removed debugging cruft from testsuite.c
- Date: Fri, 10 Mar 2017 15:18:44 +0000 (UTC)
commit 8b574671c9ea9a9c7702303680bf7d570200f149
Author: Jeffrey Stedfast <fejj gnome org>
Date: Fri Mar 10 09:03:29 2017 -0500
Removed debugging cruft from testsuite.c
tests/testsuite.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/tests/testsuite.c b/tests/testsuite.c
index 2f170c6..1655a73 100644
--- a/tests/testsuite.c
+++ b/tests/testsuite.c
@@ -430,11 +430,11 @@ testsuite_setup_gpghome (const char *gpg)
int i;
/* reset .gnupg config directory */
- //if (system ("/bin/rm -rf ./tmp") != 0)
- // return EXIT_FAILURE;
+ if (system ("/bin/rm -rf ./tmp") != 0)
+ return EXIT_FAILURE;
- //if (g_mkdir ("./tmp", 0755) != 0)
- // return EXIT_FAILURE;
+ if (g_mkdir ("./tmp", 0755) != 0)
+ return EXIT_FAILURE;
g_setenv ("GNUPGHOME", "./tmp/.gnupg", 1);
@@ -443,8 +443,6 @@ testsuite_setup_gpghome (const char *gpg)
g_unsetenv ("DISPLAY");
g_unsetenv ("GPG_TTY");
- return 0;
-
command = g_strdup_printf ("%s --list-keys > /dev/null 2>&1", gpg);
if (system (command) != 0) {
g_free (command);
@@ -477,6 +475,7 @@ testsuite_setup_gpghome (const char *gpg)
if (fclose (fp))
return EXIT_FAILURE;
+#if DEBUG_GNUPG
cwd = g_get_current_dir ();
for (i = 0; files[i]; i++) {
@@ -496,6 +495,7 @@ testsuite_setup_gpghome (const char *gpg)
}
g_free (cwd);
+#endif
return EXIT_SUCCESS;
}
@@ -503,8 +503,8 @@ testsuite_setup_gpghome (const char *gpg)
int
testsuite_destroy_gpghome (void)
{
- //if (system ("/bin/rm -rf ./tmp") != 0)
- // return EXIT_FAILURE;
+ if (system ("/bin/rm -rf ./tmp") != 0)
+ return EXIT_FAILURE;
return EXIT_SUCCESS;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]