Skip to content

Commit

Permalink
threadstest: add write check to lock checking
Browse files Browse the repository at this point in the history
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from #17479)
  • Loading branch information
paulidale committed Jan 13, 2022
1 parent cca25d5 commit 3517a3e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/threadstest.c
Expand Up @@ -33,6 +33,8 @@ static int test_lock(void)
int res;

res = TEST_true(CRYPTO_THREAD_read_lock(lock))
&& TEST_true(CRYPTO_THREAD_unlock(lock))
&& TEST_true(CRYPTO_THREAD_write_lock(lock))
&& TEST_true(CRYPTO_THREAD_unlock(lock));

CRYPTO_THREAD_lock_free(lock);
Expand Down

0 comments on commit 3517a3e

Please sign in to comment.