Subject: [Boost-bugs] [Boost C++ Libraries] #13290: Ability to detect boost unit test in an executable
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-11-06 22:15:55
#13290: Ability to detect boost unit test in an executable
-------------------------------------+-------------------------------
Reporter: Rich Chiodo <rchiodo@â¦> | Owner: Gennadiy Rozental
Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: test
Version: Boost 1.65.0 | Severity: Optimization
Keywords: test |
-------------------------------------+-------------------------------
I'd like to make it possible for tools to detect if the boost::test
framework is being used or not. Right now tools have to parse PDB files
for boost::unit_test related symbols and this can be buggy. (Like MSVC
/FASTLINK breaking symbol searches)
I propose adding something like so to boost\test\unit_test.hpp
// Define a guid such that external tools can determine if an executable
is a boost unit test executable or not.
#ifdef BOOST_MSVC
__declspec(dllexport) const char * __customCE69DB72_boost_test_identifier
= "CE69DB72-CB65-4FDE-A94C-56C871E976D7";
#endif
This puts the guid CE69DB72-CB65-4FDE-A94C-56C871E976D7 into the string
table of the final exe and can be searched by tools (instead of requiring
the pdb).
-- Ticket URL: <https://svn.boost.org/trac10/boost/ticket/13290> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-11-06 22:22:29 UTC