Files
soci/tests
Vadim Zeitlin 32ad8a4a08 Fix thread-safety of SQLite synchronous option unit test
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.
2026-09-01 01:48:53 +02:00
..
2025-03-04 18:03:53 +01:00
2025-03-04 17:58:53 +01:00
2025-03-04 18:03:53 +01:00
2025-03-04 18:03:53 +01:00
2025-03-04 18:03:53 +01:00

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.