summaryrefslogtreecommitdiff
path: root/tests/t-ed25519.c
diff options
context:
space:
mode:
authorJustus Winter <justus@g10code.com>2016-12-13 12:20:32 +0100
committerJustus Winter <justus@g10code.com>2016-12-13 13:28:30 +0100
commit1b15ff58f9c17c16ce44acc110e2865e7d4d2321 (patch)
tree30b01a088de0e0479c2c681673129f999976e3d2 /tests/t-ed25519.c
parentf9aa9dd3fd39bb693a75b9a8166a7426c123cc3e (diff)
downloadlibgcrypt-1b15ff58f9c17c16ce44acc110e2865e7d4d2321.tar.gz
tests: Rename 'show' to 'info'.
-- Signed-off-by: Justus Winter <justus@g10code.com>
Diffstat (limited to 'tests/t-ed25519.c')
-rw-r--r--tests/t-ed25519.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/t-ed25519.c b/tests/t-ed25519.c
index d63c145d..f0c44cc6 100644
--- a/tests/t-ed25519.c
+++ b/tests/t-ed25519.c
@@ -90,7 +90,7 @@ fail (const char *format, ...)
}
static void
-show (const char *format, ...)
+info (const char *format, ...)
{
va_list arg_ptr;
@@ -185,7 +185,7 @@ read_textline (FILE *fp, int *lineno)
}
while (!*line || *line == '#');
/* if (debug) */
- /* show ("read line: '%s'\n", line); */
+ /* info ("read line: '%s'\n", line); */
return xstrdup (line);
}
@@ -269,7 +269,7 @@ one_test (int testno, const char *sk, const char *pk,
size_t sig_r_len, sig_s_len;
if (verbose > 1)
- show ("Running test %d\n", testno);
+ info ("Running test %d\n", testno);
if (!(buffer = hex2buffer (sk, &buflen)))
{
@@ -384,8 +384,8 @@ one_test (int testno, const char *sk, const char *pk,
{
fail ("gcry_pk_sign failed for test %d: %s",
testno, "wrong value returned");
- show (" expected: '%s'", sig);
- show (" got: '%s'", sig_rs_string);
+ info (" expected: '%s'", sig);
+ info (" got: '%s'", sig_rs_string);
}
}
@@ -417,7 +417,7 @@ check_ed25519 (const char *fname)
int testno;
char *sk, *pk, *msg, *sig;
- show ("Checking Ed25519.\n");
+ info ("Checking Ed25519.\n");
fp = fopen (fname, "r");
if (!fp)
@@ -558,7 +558,7 @@ main (int argc, char **argv)
xfree (fname);
- show ("All tests completed in %s. Errors: %d\n",
+ info ("All tests completed in %s. Errors: %d\n",
elapsed_time (1), error_count);
return !!error_count;
}