summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2019-05-19 16:26:48 +0200
committerRichard Braun <rbraun@sceen.net>2019-05-19 16:26:48 +0200
commit294946552c4330ecb846d6b57cf81034844b8abf (patch)
treeb16e5b712dda6dba2e2951b45d1bcd4091227fe3
parent33149b01a99dc988f90c9902ff596e162ca23942 (diff)
test/test_sref_noref: fix naming, reduce number of loops
-rw-r--r--test/test_sref_noref.c6
1 files 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 <test/test.h>
#include <vm/vm_kmem.h>
-#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);
}