mirror of
https://github.com/allankoechke/soci.git
synced 2026-11-30 10:58:24 +00:00
This test was checking for thread-safety but was itself using in a
MT-unsafe way as it used Catch assertion macro from a thread without any
locking.
This could corrupt Catch internal state and crash, as it did in recently
re-enable AppVeyor CI tests.
Fix this by just storing the error messages in the test threads and
using Catch macros from the main thread only.
This fixes a problem introduced in ec00b69a (Amendments to the parent
commit, changing SQLite timeout setting, 2025-05-17).
See #1254.
soci/tests
SOCI tests using CATCH testing framework live here.
Currently one test is built for each backend, i.e. there are
soci_oracle_test, soci_postgresql_test, soci_sqlite3_test and so on and
for ODBC backend there are multiple versions of the test depending on the ODBC
driver used. Each of these tests can be run with a single parameter describing
the database to use for testing in the backend-specific way as well as any of
the standard CATCH command line options.