Opened 5 years ago
Closed 3 years ago
#13290 closed Feature Requests (wontfix)
Ability to detect boost unit test in an executable
Reported by: | Owned by: | Gennadiy Rozental | |
---|---|---|---|
Milestone: | To Be Determined | Component: | test |
Version: | Boost 1.65.0 | Severity: | Optimization |
Keywords: | test | Cc: |
Description
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).
Change History (2)
comment:1 by , 5 years ago
comment:2 by , 3 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Feel free to reopen an issue on GitHub if this feature is still needed.
Please explain what would be the usage scenario of this?