randombit / botan

Cryptography Toolkit
https://botan.randombit.net
BSD 2-Clause "Simplified" License
2.6k stars 570 forks source link

FIX: allow multiple BOTAN_REGISTER_TEST_FN() #4277

Closed reneme closed 4 months ago

reneme commented 4 months ago

This allows to register multiple test functions under different names in a single test_*.cpp file. Before that would have cause compile errors due to a redeclaration of the static registration variable. This now generates the variable name by incorporating the first registered function's name.

Note that this also enables /Zc:preprocessor in MSVC to make its preprocessor behave in conformance with the C++ standard. Progress!

coveralls commented 4 months ago

Coverage Status

coverage: 91.64% (+0.004%) from 91.636% when pulling baea2bd6d6b3ac37720998594cb41fa79ec8c037 on Rohde-Schwarz:fix/register_multiple_test_fns into efad31087c3fba7d86df98b805c381c1826161e3 on randombit:master.