First Commit
/ build_macos (push) Has been cancelled
/ build_windows (push) Has been cancelled
/ build_ubuntu (push) Has been cancelled

This commit is contained in:
dsutanto committed 2025-11-19 16:23:45 +07:00
commit dbdc5bcc4a
1791 files changed
+489451

No files matched your search

@@ -0,0 +1,23 @@
#include "../test_helpers.hxx"
#include <pqxx/util>
namespace
{
void test_thread_safety_model()
{
auto const model{pqxx::describe_thread_safety()};
if (model.safe_libpq and model.safe_kerberos)
PQXX_CHECK_EQUAL(
model.description, "",
"Thread-safety looks okay but model description is nonempty.");
else
PQXX_CHECK_NOT_EQUAL(
model.description, "",
"Thread-safety model is imperfect but lacks description.");
}
PQXX_REGISTER_TEST(test_thread_safety_model);
} // namespace