From 294946552c4330ecb846d6b57cf81034844b8abf Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Sun, 19 May 2019 16:26:48 +0200 Subject: test/test_sref_noref: fix naming, reduce number of loops --- test/test_sref_noref.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_sref_noref.c b/test/test_sref_noref.c index f5b1875e..e82d14c3 100644 --- a/test/test_sref_noref.c +++ b/test/test_sref_noref.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014 Richard Braun. + * Copyright (c) 2014-2019 Richard Braun. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -50,7 +50,7 @@ #include #include -#define NR_LOOPS (100UL * 1000 * 1000) +#define TEST_NR_LOOPS (10UL * 1000 * 1000) struct test_obj { struct sref_counter ref_counter; @@ -154,7 +154,7 @@ test_run(void *arg) condition_broadcast(&test_condition); mutex_unlock(&test_lock); - for (loop = 0; loop < NR_LOOPS; loop++) { + for (loop = 0; loop < TEST_NR_LOOPS; loop++) { test_manipulate_counter(obj); } -- cgit v1.2.3