tests: Add single process repo locking tests
authorDan Nicholson <dbn@endlessos.org>
Thu, 22 Apr 2021 15:10:15 +0000 (09:10 -0600)
committerDan Nicholson <dbn@endlessos.org>
Sat, 5 Jun 2021 15:15:34 +0000 (09:15 -0600)
commit06bb56be6d0376906433a8e34cb56bca85c39dc5
tree5ea0301df50119352073d5caf950f51e410e7e0c
parent055b263dee7a26ae085527a3a39d96e68e78a512
tests: Add single process repo locking tests

The semantics of multiple process locking are covered by
test-concurrency.py, but the semantics of the repository locking from a
single process aren't handled there.

This checks how the repository locking is handled from a single thread
with one OstreeRepo, a single thread with multiple OstreeRepos, and
multiple threads sharing an OstreeRepo.
tests/test-repo.c