aboutsummaryrefslogtreecommitdiffstats
path: root/tests/gpgsm/t-import.c
diff options
context:
space:
mode:
authorMarcus Brinkmann <[email protected]>2003-09-14 01:05:06 +0000
committerMarcus Brinkmann <[email protected]>2003-09-14 01:05:06 +0000
commit38a0357afbd1a005efce142a2aacb77d485e55b7 (patch)
tree6b0406d046ef10bf476de4eee5e6ad4b4e0f02ad /tests/gpgsm/t-import.c
parentRequire libgpg-error 0.5. (diff)
downloadgpgme-38a0357afbd1a005efce142a2aacb77d485e55b7.tar.gz
gpgme-38a0357afbd1a005efce142a2aacb77d485e55b7.zip
Include "t-support.h".
Diffstat (limited to 'tests/gpgsm/t-import.c')
-rw-r--r--tests/gpgsm/t-import.c35
1 files changed, 1 insertions, 34 deletions
diff --git a/tests/gpgsm/t-import.c b/tests/gpgsm/t-import.c
index c9c31ffd..43381569 100644
--- a/tests/gpgsm/t-import.c
+++ b/tests/gpgsm/t-import.c
@@ -25,40 +25,7 @@
#include <gpgme.h>
-
-#define fail_if_err(err) \
- do \
- { \
- if (err) \
- { \
- fprintf (stderr, "%s:%d: gpgme_error_t %s\n", \
- __FILE__, __LINE__, gpgme_strerror (err)); \
- exit (1); \
- } \
- } \
- while (0)
-
-
-static char *
-make_filename (const char *fname)
-{
- const char *srcdir = getenv ("srcdir");
- char *buf;
-
- if (!srcdir)
- srcdir = ".";
- buf = malloc (strlen(srcdir) + strlen(fname) + 2);
- if (!buf)
- {
- fprintf (stderr, "%s:%d: could not allocate string: %s\n",
- __FILE__, __LINE__, strerror (errno));
- exit (1);
- }
- strcpy (buf, srcdir);
- strcat (buf, "/");
- strcat (buf, fname);
- return buf;
-}
+#include "t-support.h"
void