Add a test harness for the LWLock tranche code.

This code is heavily used and already has decent test coverage, but
it lacks a dedicated test suite.  This commit changes that.

Author: Sami Imseih <samims...@gmail.com>
Co-authored-by: Nathan Bossart <nathandboss...@gmail.com>
Reviewed-by: Bertrand Drouvot <bertranddrouvot...@gmail.com>
Discussion: 
https://postgr.es/m/CAA5RZ0tQ%2BEYSTOd2hQ8RXdsNfGBLAtOe-YmnsTE6ZVg0E-4qew%40mail.gmail.com
Discussion: 
https://postgr.es/m/CAA5RZ0vpr0P2rbA%3D_K0_SCHM7bmfVX4wEO9FAyopN1eWCYORhA%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/16607718c0107e971bf155c6357c193cc3f8f66a

Modified Files
--------------
src/test/modules/Makefile                          |   1 +
src/test/modules/meson.build                       |   1 +
src/test/modules/test_lwlock_tranches/.gitignore   |   4 +
src/test/modules/test_lwlock_tranches/Makefile     |  25 +++++
.../expected/test_lwlock_tranches.out              |  25 +++++
src/test/modules/test_lwlock_tranches/meson.build  |  35 ++++++
.../sql/test_lwlock_tranches.sql                   |   8 ++
.../test_lwlock_tranches--1.0.sql                  |  16 +++
.../test_lwlock_tranches/test_lwlock_tranches.c    | 123 +++++++++++++++++++++
.../test_lwlock_tranches/test_lwlock_tranches.conf |   1 +
.../test_lwlock_tranches.control                   |   4 +
11 files changed, 243 insertions(+)

Reply via email to