summaryrefslogtreecommitdiff
path: root/t/t_openpam_readlinev.c
diff options
context:
space:
mode:
Diffstat (limited to 't/t_openpam_readlinev.c')
-rw-r--r--t/t_openpam_readlinev.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/t/t_openpam_readlinev.c b/t/t_openpam_readlinev.c
index abc29e26cd557..e32f338794532 100644
--- a/t/t_openpam_readlinev.c
+++ b/t/t_openpam_readlinev.c
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 2012-2015 Dag-Erling Smørgrav
+ * Copyright (c) 2012-2017 Dag-Erling Smørgrav
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: t_openpam_readlinev.c 922 2017-02-19 19:28:30Z des $
+ * $OpenPAM: t_openpam_readlinev.c 938 2017-04-30 21:34:42Z des $
*/
#ifdef HAVE_CONFIG_H
@@ -52,7 +52,7 @@
OPENPAM_UNUSED(void *arg))
#define T(n) \
- t_add_test(&t_ ## n ## _func, NULL, t_ ## n ## _desc)
+ t_add_test(&t_ ## n ## _func, NULL, "%s", t_ ## n ## _desc)
/*
* Read a line from the temp file and verify that the result matches our
@@ -76,20 +76,20 @@ orlv_expect(struct t_file *tf, const char **expectedv, int lines, int eof)
if (t_ferror(tf))
err(1, "%s(): %s", __func__, tf->name);
if (expectedv != NULL && gotv == NULL) {
- t_verbose("expected %d words, got nothing\n", expectedc);
+ t_printv("expected %d words, got nothing\n", expectedc);
ret = 0;
} else if (expectedv == NULL && gotv != NULL) {
- t_verbose("expected nothing, got %d words\n", gotc);
+ t_printv("expected nothing, got %d words\n", gotc);
ret = 0;
} else if (expectedv != NULL && gotv != NULL) {
if (expectedc != gotc) {
- t_verbose("expected %d words, got %d\n",
+ t_printv("expected %d words, got %d\n",
expectedc, gotc);
ret = 0;
}
for (i = 0; i < gotc; ++i) {
if (strcmp(expectedv[i], gotv[i]) != 0) {
- t_verbose("word %d: expected <<%s>>, "
+ t_printv("word %d: expected <<%s>>, "
"got <<%s>>\n", i, expectedv[i], gotv[i]);
ret = 0;
}
@@ -97,15 +97,15 @@ orlv_expect(struct t_file *tf, const char **expectedv, int lines, int eof)
}
FREEV(gotc, gotv);
if (lineno != lines) {
- t_verbose("expected to advance %d lines, advanced %d lines\n",
+ t_printv("expected to advance %d lines, advanced %d lines\n",
lines, lineno);
ret = 0;
}
if (eof && !t_feof(tf)) {
- t_verbose("expected EOF, but didn't get it\n");
+ t_printv("expected EOF, but didn't get it\n");
ret = 0;
} else if (!eof && t_feof(tf)) {
- t_verbose("didn't expect EOF, but got it anyway\n");
+ t_printv("didn't expect EOF, but got it anyway\n");
ret = 0;
}
return (ret);