diff options
Diffstat (limited to 'p11-kit/tests')
-rw-r--r-- | p11-kit/tests/test-init.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/p11-kit/tests/test-init.c b/p11-kit/tests/test-init.c index 76805ee..ebc0666 100644 --- a/p11-kit/tests/test-init.c +++ b/p11-kit/tests/test-init.c @@ -233,8 +233,11 @@ test_threaded_initialization (void) module.C_Finalize = mock_C_Finalize__threaded_race; memset (&data, 0, sizeof (data)); + + p11_mutex_lock (&race_mutex); initialization_count = 0; finalization_count = 0; + p11_mutex_unlock (&race_mutex); p11_lock (); |