diff options
author | djm@openbsd.org <djm@openbsd.org> | 2018-02-08 08:46:20 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2018-02-23 14:05:07 +1100 |
commit | 3b252c20b19f093e87363de197f1100b79705dd3 (patch) | |
tree | 7951acf36f234e3bce0855ea330f1542dbb856e9 /regress/unittests/test_helper/test_helper.c | |
parent | ac2e3026bbee1367e4cda34765d1106099be3287 (diff) |
upstream: some helpers to check verbose/quiet mode
OpenBSD-Regress-ID: e736aac39e563f5360a0935080a71d5fdcb976de
Diffstat (limited to 'regress/unittests/test_helper/test_helper.c')
-rw-r--r-- | regress/unittests/test_helper/test_helper.c | 14 |
1 files changed, 13 insertions, 1 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 | { |