diff options
author | Werner Koch <wk@gnupg.org> | 2017-08-02 18:45:51 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2017-08-02 18:46:55 +0200 |
commit | df1e221b3012e96bbffbc7d5fd70836a9ae1cc19 (patch) | |
tree | 75cc70dbc1b9d79259e42a831e31373e963d524b | |
parent | 21d0f068a721c022f955084c28304934fd198c5e (diff) | |
download | libgcrypt-df1e221b3012e96bbffbc7d5fd70836a9ae1cc19.tar.gz |
tests: Fix a printf glitch for a Windows test.
* tests/t-convert.c (check_formats): Fix print format glitch on
Windows.
* tests/t-ed25519.c: Typo fix.
Signed-off-by: Werner Koch <wk@gnupg.org>
-rw-r--r-- | tests/t-convert.c | 12 | ||||
-rw-r--r-- | tests/t-ed25519.c | 2 |
2 files changed, 9 insertions, 5 deletions
diff --git a/tests/t-convert.c b/tests/t-convert.c index ec566777..121039c7 100644 --- a/tests/t-convert.c +++ b/tests/t-convert.c @@ -435,7 +435,8 @@ check_formats (void) if (gcry_mpi_cmp (a, b) || data[idx].a.stdlen != buflen) { fail ("error scanning value %d from %s: %s (%lu)\n", - data[idx].value, "STD", "wrong result", buflen); + data[idx].value, "STD", "wrong result", + (long unsigned int)buflen); showmpi ("expected:", a); showmpi (" got:", b); } @@ -452,7 +453,8 @@ check_formats (void) if (gcry_mpi_cmp (a, b) || data[idx].a.sshlen != buflen) { fail ("error scanning value %d from %s: %s (%lu)\n", - data[idx].value, "SSH", "wrong result", buflen); + data[idx].value, "SSH", "wrong result", + (long unsigned int)buflen); showmpi ("expected:", a); showmpi (" got:", b); } @@ -471,7 +473,8 @@ check_formats (void) if (gcry_mpi_cmp (a, b) || data[idx].a.usglen != buflen) { fail ("error scanning value %d from %s: %s (%lu)\n", - data[idx].value, "USG", "wrong result", buflen); + data[idx].value, "USG", "wrong result", + (long unsigned int)buflen); showmpi ("expected:", a); showmpi (" got:", b); } @@ -492,7 +495,8 @@ check_formats (void) if (gcry_mpi_cmp (a, b) || data[idx].a.pgplen != buflen) { fail ("error scanning value %d from %s: %s (%lu)\n", - data[idx].value, "PGP", "wrong result", buflen); + data[idx].value, "PGP", "wrong result", + (long unsigned int)buflen); showmpi ("expected:", a); showmpi (" got:", b); } diff --git a/tests/t-ed25519.c b/tests/t-ed25519.c index 2f59a890..73628a81 100644 --- a/tests/t-ed25519.c +++ b/tests/t-ed25519.c @@ -74,7 +74,7 @@ show_sexp (const char *prefix, gcry_sexp_t a) /* Prepend FNAME with the srcdir environment variable's value and - retrun an allocated filename. */ + * return an allocated filename. */ char * prepend_srcdir (const char *fname) { |