summaryrefslogtreecommitdiffstats
path: root/test/test_ring.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_ring.c')
-rw-r--r--test/test_ring.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_ring.c b/test/test_ring.c
index fc45ac6..46abe05 100644
--- a/test/test_ring.c
+++ b/test/test_ring.c
@@ -1,4 +1,4 @@
-// Copyright 2011-2021 David Robillard <d@drobilla.net>
+// Copyright 2011-2023 David Robillard <d@drobilla.net>
// SPDX-License-Identifier: ISC
#undef NDEBUG
@@ -182,8 +182,8 @@ test_failed_alloc(void)
int
main(int argc, char** argv)
{
- if (argc > 1 && argv[1][0] == '-') {
- printf("Usage: %s SIZE N_WRITES\n", argv[0]);
+ if (argc > 3) {
+ printf("Usage: %s SIZE [N_WRITES]\n", argv[0]);
return 1;
}