diff options
author | Richard Braun <rbraun@sceen.net> | 2018-02-07 01:37:37 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2018-02-12 21:08:56 +0100 |
commit | ae60396f03b548f800da861d06cc2bea19a260aa (patch) | |
tree | 025e87f03b25714e9da03ce45b70b46f3a2bd5ea | |
parent | 0b295c78c3a878f8a58d944a6a84c3f8dd2cebba (diff) |
test: fix calls to sref_counter_init in sref tests
-rw-r--r-- | test/test_sref_dirty_zeroes.c | 2 | ||||
-rw-r--r-- | test/test_sref_noref.c | 2 | ||||
-rw-r--r-- | test/test_sref_weakref.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/test/test_sref_dirty_zeroes.c b/test/test_sref_dirty_zeroes.c index be4c491..6fcf976 100644 --- a/test/test_sref_dirty_zeroes.c +++ b/test/test_sref_dirty_zeroes.c @@ -111,7 +111,7 @@ test_setup(void) condition_init(&test_condition); mutex_init(&test_lock); - sref_counter_init(&test_counter, NULL, test_noref); + sref_counter_init(&test_counter, 1, NULL, test_noref); test_transient_ref = 0; thread_attr_init(&attr, THREAD_KERNEL_PREFIX "test_inc"); diff --git a/test/test_sref_noref.c b/test/test_sref_noref.c index f556d32..71990e2 100644 --- a/test/test_sref_noref.c +++ b/test/test_sref_noref.c @@ -142,7 +142,7 @@ test_run(void *arg) panic("vm_kmem_alloc: %s", error_str(ERROR_NOMEM)); } - sref_counter_init(&obj->ref_counter, NULL, test_obj_noref); + sref_counter_init(&obj->ref_counter, 1, NULL, test_obj_noref); printf("page allocated, 1 reference, publishing\n"); diff --git a/test/test_sref_weakref.c b/test/test_sref_weakref.c index 85d4cbe..f1396c3 100644 --- a/test/test_sref_weakref.c +++ b/test/test_sref_weakref.c @@ -67,7 +67,7 @@ test_run(void *arg) continue; } - sref_counter_init(counter, &test_weakref, test_noref); + sref_counter_init(counter, 1, &test_weakref, test_noref); sref_counter_dec(counter); for (j = 0; j < 0x20000000; j++); |