diff options
-rw-r--r-- | regress/unittests/test_helper/test_helper.c | 14 | ||||
-rw-r--r-- | regress/unittests/test_helper/test_helper.h | 4 |
2 files changed, 16 insertions, 2 deletions
diff --git a/regress/unittests/test_helper/test_helper.c b/regress/unittests/test_helper/test_helper.c index f855137fb..866f3495d 100644 --- a/regress/unittests/test_helper/test_helper.c +++ b/regress/unittests/test_helper/test_helper.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: test_helper.c,v 1.7 2017/03/14 01:10:07 dtucker Exp $ */ | 1 | /* $OpenBSD: test_helper.c,v 1.8 2018/02/08 08:46:20 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2011 Damien Miller <djm@mindrot.org> | 3 | * Copyright (c) 2011 Damien Miller <djm@mindrot.org> |
4 | * | 4 | * |
@@ -166,6 +166,18 @@ main(int argc, char **argv) | |||
166 | return 0; | 166 | return 0; |
167 | } | 167 | } |
168 | 168 | ||
169 | int | ||
170 | test_is_verbose() | ||
171 | { | ||
172 | return verbose_mode; | ||
173 | } | ||
174 | |||
175 | int | ||
176 | test_is_quiet() | ||
177 | { | ||
178 | return quiet_mode; | ||
179 | } | ||
180 | |||
169 | const char * | 181 | const char * |
170 | test_data_file(const char *name) | 182 | test_data_file(const char *name) |
171 | { | 183 | { |
diff --git a/regress/unittests/test_helper/test_helper.h b/regress/unittests/test_helper/test_helper.h index 615b7832b..6da0066e9 100644 --- a/regress/unittests/test_helper/test_helper.h +++ b/regress/unittests/test_helper/test_helper.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: test_helper.h,v 1.7 2017/03/14 01:10:07 dtucker Exp $ */ | 1 | /* $OpenBSD: test_helper.h,v 1.8 2018/02/08 08:46:20 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2011 Damien Miller <djm@mindrot.org> | 3 | * Copyright (c) 2011 Damien Miller <djm@mindrot.org> |
4 | * | 4 | * |
@@ -43,6 +43,8 @@ void test_start(const char *n); | |||
43 | void test_info(char *s, size_t len); | 43 | void test_info(char *s, size_t len); |
44 | void set_onerror_func(test_onerror_func_t *f, void *ctx); | 44 | void set_onerror_func(test_onerror_func_t *f, void *ctx); |
45 | void test_done(void); | 45 | void test_done(void); |
46 | int test_is_verbose(void); | ||
47 | int test_is_quiet(void); | ||
46 | void test_subtest_info(const char *fmt, ...) | 48 | void test_subtest_info(const char *fmt, ...) |
47 | __attribute__((format(printf, 1, 2))); | 49 | __attribute__((format(printf, 1, 2))); |
48 | void ssl_err_check(const char *file, int line); | 50 | void ssl_err_check(const char *file, int line); |