aboutsummaryrefslogtreecommitdiffstats
path: root/tests/t-data.c
diff options
context:
space:
mode:
authorMarcus Brinkmann <[email protected]>2012-02-08 14:26:17 +0000
committerMarcus Brinkmann <[email protected]>2012-02-08 14:26:17 +0000
commitdae3073aaa8b7feb1c844fdaf711f79141b9cc65 (patch)
tree5e298888803b5e9f6ba2656759bb76a6c27c6d5e /tests/t-data.c
parentLink the thread test to pthread. (diff)
downloadgpgme-dae3073aaa8b7feb1c844fdaf711f79141b9cc65.tar.gz
gpgme-dae3073aaa8b7feb1c844fdaf711f79141b9cc65.zip
Use gpgme interface for error handling to avoid linking with gpg-error.
* tests/t-data.c, tests/run-export.c, tests/run-keylist.c, tests/run-support.h, tests/run-verify.c, tests/gpg/t-decrypt-verify.c, tests/gpg/t-edit.c, tests/gpg/t-eventloop.c, tests/gpg/t-keylist-sig.c, tests/gpg/t-keylist.c, tests/gpg/t-support.h, tests/gpg/t-trustlist.c, tests/gpg/t-verify.c, tests/gpg/t-wait.c, tests/gpgsm/cms-decrypt.c, tests/gpgsm/cms-keylist.c, tests/gpgsm/t-keylist.c, tests/gpgsm/t-support.h, tests/gpgsm/t-verify.c, tests/opassuan/t-command.c: Use gpgme interface for gpg-error functions.
Diffstat (limited to 'tests/t-data.c')
-rw-r--r--tests/t-data.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/t-data.c b/tests/t-data.c
index 713da0a6..a319484f 100644
--- a/tests/t-data.c
+++ b/tests/t-data.c
@@ -163,7 +163,7 @@ write_test (round_t round, gpgme_data_t data)
amt = gpgme_data_write (data, text, strlen (text));
if (amt != strlen (text))
- fail_if_err (gpg_error_from_errno (errno));
+ fail_if_err (gpgme_error_from_errno (errno));
gpgme_data_seek (data, 0, SEEK_SET);
@@ -237,8 +237,8 @@ main (int argc, char **argv)
case TEST_INOUT_MEM_FROM_FILE_NO_COPY:
err = gpgme_data_new_from_file (&data, text_filename, 0);
/* This is not implemented yet. */
- if (gpg_err_code (err) == GPG_ERR_NOT_IMPLEMENTED
- || gpg_err_code (err) == GPG_ERR_INV_VALUE)
+ if (gpgme_err_code (err) == GPG_ERR_NOT_IMPLEMENTED
+ || gpgme_err_code (err) == GPG_ERR_INV_VALUE)
continue;
break;
case TEST_INOUT_MEM_FROM_FILE_PART_BY_NAME: