#
# Copyright (c) 2019-2024 Ruben Perez Hidalgo (rubenperez038 at gmail dot com)
#
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#

import os ;

# The hostname to use for tests
local hostname = [ os.environ BOOST_MYSQL_SERVER_HOST ] ;
if $(hostname) = ""
{
    hostname = "127.0.0.1" ;
}


# In OSX, tsan reports a race condition in Asio's kqueue reactor. Ignore this for now.
# Net TS executors use std::atomic_thread_fence, unsupported by TSAN, which yields false positives.
run
        /boost/mysql/test//boost_mysql_compiled
        connection_pool.cpp
    : requirements
        <testing.arg>$(hostname)
        <target-os>darwin:<build>no
        <boost.mysql.use-ts-executor>on:<build>no
        <thread-sanitizer>norecover
    : target-name boost_mysql_thread_safety
;
