Boost C++ Libraries: Ticket #13290: Ability to detect boost unit test in an executable https://svn.boost.org/trac10/ticket/13290 <p> 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) </p> <p> I propose adding something like so to boost\test\unit_test.hpp </p> <p> <em> Define a guid such that external tools can determine if an executable is a boost unit test executable or not. #ifdef BOOST_MSVC <span class="underline">declspec(dllexport) const char * </span>customCE69DB72_boost_test_identifier = "CE69DB72-CB65-4FDE-A94C-56C871E976D7"; #endif </em></p> <p> 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). </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13290 Trac 1.4.3 Raffi Enficiaud Sun, 12 Nov 2017 16:01:02 GMT <link>https://svn.boost.org/trac10/ticket/13290#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13290#comment:1</guid> <description> <p> Please explain what would be the usage scenario of this? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Raffi Enficiaud</dc:creator> <pubDate>Thu, 02 Apr 2020 19:05:56 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/13290#comment:2 https://svn.boost.org/trac10/ticket/13290#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">wontfix</span> </li> </ul> <p> Feel free to reopen an issue on <a class="missing wiki">GitHub</a> if this feature is still needed. </p> Ticket