Added explicit dependencies to tests.

Also use a more specific include from Boost.SmartPtr.
This commit is contained in:
Andrey Semashev
2026-01-24 21:18:43 +03:00
parent faf9c4ac3c
commit 4541024186
2 changed files with 42 additions and 11 deletions
+41 -10
View File
@@ -55,6 +55,10 @@ project
<target-os>windows:<define>_CRT_SECURE_NO_WARNINGS
<target-os>windows:<define>_CRT_SECURE_NO_DEPRECATE
<library>/boost/filesystem//boost_filesystem
<library>/boost/system//boost_system
<library>/boost/config//boost_config
<library>/boost/core//boost_core
<library>/boost/detail//boost_detail
<conditional>@check-mklink
;
@@ -72,9 +76,9 @@ if [ os.environ UBSAN ]
<library>/boost/filesystem//boost_filesystem/<visibility>global ;
}
run config_info.cpp : : : <link>shared <test-info>always_show_run_output ;
run config_info.cpp : : : <link>static <test-info>always_show_run_output : config_info_static ;
run convenience_test.cpp : : : <define>BOOST_FILESYSTEM_VERSION=4 ;
run config_info.cpp : : : <link>shared <test-info>always_show_run_output <library>/boost/assert//boost_assert ;
run config_info.cpp : : : <link>static <test-info>always_show_run_output <library>/boost/assert//boost_assert : config_info_static ;
run convenience_test.cpp : : : <define>BOOST_FILESYSTEM_VERSION=4 <library>/boost/bind//boost_bind ;
compile macro_default_test.cpp ;
run odr1_test.cpp odr2_test.cpp ;
run deprecated_test.cpp : : : <define>BOOST_FILESYSTEM_VERSION=3 ;
@@ -86,16 +90,43 @@ run operations_test.cpp : : : <link>shared <define>BOOST_FILESYSTEM_VERSION=4 <t
run operations_test.cpp : : : <link>static <define>BOOST_FILESYSTEM_VERSION=4 : operations_test_static ;
run operations_test.cpp : : : <link>shared <define>BOOST_FILESYSTEM_VERSION=3 : operations_test_v3 ;
run operations_unit_test.cpp : $(HERE) : : <link>shared <define>BOOST_FILESYSTEM_VERSION=4 <test-info>always_show_run_output ;
run copy_test.cpp : : : <define>BOOST_FILESYSTEM_VERSION=4 <library>/boost/exception//boost_exception ;
run copy_test.cpp : : : <define>BOOST_FILESYSTEM_VERSION=4 <library>/boost/throw_exception//boost_throw_exception <library>/boost/exception//boost_exception ;
compile-fail cf_path_nullptr_test.cpp ;
compile path_iter_ctor_overload_test.cpp ;
compile path_operator_ambiguity.cpp : <toolset>gcc:<warnings-as-errors>on ;
run path_test.cpp : : : <link>shared <define>BOOST_FILESYSTEM_VERSION=4 ;
run path_test.cpp : : : <link>static <define>BOOST_FILESYSTEM_VERSION=4 : path_test_static ;
run path_test.cpp : : : <link>shared <define>BOOST_FILESYSTEM_VERSION=3 : path_test_v3 ;
run path_unit_test.cpp : : : <link>shared $(VIS) <define>BOOST_FILESYSTEM_VERSION=4 ;
run path_unit_test.cpp : : : <link>static $(VIS) <define>BOOST_FILESYSTEM_VERSION=4 : path_unit_test_static ;
run path_unit_test.cpp : : : <link>shared $(VIS) <define>BOOST_FILESYSTEM_VERSION=3 : path_unit_test_v3 ;
run path_test.cpp : : :
<link>shared
<define>BOOST_FILESYSTEM_VERSION=4
<library>/boost/container//boost_container <library>/boost/iterator//boost_iterator <library>/boost/utility//boost_utility
;
run path_test.cpp : : :
<link>static
<define>BOOST_FILESYSTEM_VERSION=4
<library>/boost/container//boost_container <library>/boost/iterator//boost_iterator <library>/boost/utility//boost_utility
: path_test_static ;
run path_test.cpp : : :
<link>shared
<define>BOOST_FILESYSTEM_VERSION=3
<library>/boost/container//boost_container <library>/boost/iterator//boost_iterator <library>/boost/utility//boost_utility
: path_test_v3 ;
run path_unit_test.cpp : : :
<link>shared
$(VIS)
<define>BOOST_FILESYSTEM_VERSION=4
<library>/boost/container_hash//boost_container_hash <library>/boost/smart_ptr//boost_smart_ptr
;
run path_unit_test.cpp : : :
<link>static
$(VIS)
<define>BOOST_FILESYSTEM_VERSION=4
<library>/boost/container_hash//boost_container_hash <library>/boost/smart_ptr//boost_smart_ptr
: path_unit_test_static ;
run path_unit_test.cpp : : :
<link>shared
$(VIS)
<define>BOOST_FILESYSTEM_VERSION=3
<library>/boost/container_hash//boost_container_hash <library>/boost/smart_ptr//boost_smart_ptr
: path_unit_test_v3 ;
run relative_test.cpp : : : <define>BOOST_FILESYSTEM_VERSION=4 ;
run ../example/simple_ls.cpp : : : <define>BOOST_FILESYSTEM_VERSION=4 ;
run ../example/file_status.cpp : : : <define>BOOST_FILESYSTEM_VERSION=4 ;
+1 -1
View File
@@ -34,7 +34,7 @@
#include <boost/filesystem/detail/utf8_codecvt_facet.hpp> // for imbue tests
#include "test_codecvt.hpp" // for codecvt arg tests
#include <boost/detail/lightweight_test_report.hpp>
#include <boost/smart_ptr.hpp> // used constructor tests
#include <boost/smart_ptr/shared_ptr.hpp> // used constructor tests
#include <boost/functional/hash.hpp>
#include <boost/system/error_code.hpp>
#include <boost/system/system_error.hpp>