summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAzat Khuzhin <azat@libevent.org>2023-02-12 16:46:40 +0100
committerAzat Khuzhin <azat@libevent.org>2023-02-12 21:55:40 +0100
commit207ea62bf95e9868fc6d982305da98678fbc4507 (patch)
tree0b830d425510070c4ff548d93e91222dc98cdcc1 /test
parent0ea20582520e25659586afa460ec15de0e590725 (diff)
downloadlibevent-207ea62bf95e9868fc6d982305da98678fbc4507.tar.gz
test: handle -v as --verbose for regress
Diffstat (limited to 'test')
-rw-r--r--test/tinytest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/tinytest.c b/test/tinytest.c
index 3bc7f9f6..af1b39fe 100644
--- a/test/tinytest.c
+++ b/test/tinytest.c
@@ -402,7 +402,7 @@ static void
usage(struct testgroup_t *groups, int list_groups)
{
puts("Options are:");
- puts(" --verbose");
+ puts(" -v, --verbose");
puts(" --quiet");
puts(" --terse");
puts(" --no-fork");
@@ -496,7 +496,7 @@ tinytest_main(int c, const char **v, struct testgroup_t *groups)
} else if (!strcmp(v[i], "--quiet")) {
opt_verbosity = -1;
verbosity_flag = "--quiet";
- } else if (!strcmp(v[i], "--verbose")) {
+ } else if (!strcmp(v[i], "-v") || !strcmp(v[i], "--verbose")) {
opt_verbosity = 2;
verbosity_flag = "--verbose";
} else if (!strcmp(v[i], "--terse")) {