Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for the issue #430, arg_type_mismatch exception with dynamic link #431

Merged
merged 1 commit into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions example/unit_test_example_16.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ bool init_unit_test()
#if (!defined(BOOST_TEST_DYN_LINK) || (!defined(BOOST_CLANG) || (BOOST_CLANG != 1) || (__clang_major__ >= 8))) && !defined(__APPLE__)
log_level logLevel = runtime_config::get<log_level>(runtime_config::btrt_log_level);
std::cout << "Current log level: " << static_cast<int>(logLevel) << std::endl;
output_format logFormat = runtime_config::get<output_format>(runtime_config::btrt_log_format);
std::cout << "Current log format: " << static_cast<int>(logFormat) << std::endl;
report_level reportLevel = runtime_config::get<report_level>(runtime_config::btrt_report_level);
std::cout << "Current report level: " << static_cast<int>(reportLevel) << std::endl;
#endif
return true;
}
Expand Down
18 changes: 11 additions & 7 deletions include/boost/test/detail/global_typedef.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,21 @@ typedef unsigned long counter_t;

//____________________________________________________________________________//

enum report_level { INV_REPORT_LEVEL, CONFIRMATION_REPORT, SHORT_REPORT, DETAILED_REPORT, NO_REPORT };
enum BOOST_SYMBOL_VISIBLE report_level { INV_REPORT_LEVEL,
CONFIRMATION_REPORT,
SHORT_REPORT,
DETAILED_REPORT,
NO_REPORT };

//____________________________________________________________________________//

//! Indicates the output format for the loggers or the test tree printing
enum output_format { OF_INVALID,
OF_CLF, ///< compiler log format
OF_XML, ///< XML format for report and log,
OF_JUNIT, ///< JUNIT format for report and log,
OF_CUSTOM_LOGGER, ///< User specified logger.
OF_DOT ///< dot format for output content
enum BOOST_SYMBOL_VISIBLE output_format { OF_INVALID,
OF_CLF, ///< compiler log format
OF_XML, ///< XML format for report and log,
OF_JUNIT, ///< JUNIT format for report and log,
OF_CUSTOM_LOGGER, ///< User specified logger.
OF_DOT ///< dot format for output content
};

//____________________________________________________________________________//
Expand Down
Loading