Commit Graph

3194 Commits

Author SHA1 Message Date
Raffi Enficiaud
ef61be4b6d Merge branch 'develop'
* develop:
  Change log
  Change log
  Fix counting the skipped tests
  boost::diagnostic_information() works in no rtti mode.
2019-12-02 23:51:25 +01:00
Raffi Enficiaud
aaacf00faa Merge branch 'topic/PR-234-boost-diagnostic_information-rtti' into next-internal
* topic/PR-234-boost-diagnostic_information-rtti:
  Change log
  boost::diagnostic_information() works in no rtti mode.
2019-11-12 18:01:33 +01:00
Raffi Enficiaud
0c9ff7204d Change log 2019-11-12 18:01:05 +01:00
Raffi Enficiaud
79ebb9d06d Merge branch 'topic/GH-206-compile-time-disabled-junit' into next-internal
* topic/GH-206-compile-time-disabled-junit:
  Change log
  Fix counting the skipped tests
  Reverting unrelated breaking change
2019-11-11 21:15:38 +01:00
Raffi Enficiaud
3bbe17cb6b Change log 2019-11-11 21:15:09 +01:00
Raffi Enficiaud
6f55433094 Fix counting the skipped tests
- framework now does not shortcut the message when a skipped
  tests is encountered
- framework messages are now at line "0" to avoid any further noise
  in the messages when files in the framework are changed
- counting tests in case of disabled tests goes in the hierarchy
- counter class now has the ability to discard the enabled status
  to count properly the children tests
- adding tests
- ensuring C++03 compatibility
2019-11-11 21:15:08 +01:00
Mikhail Pilin
d29fe65a6d boost::diagnostic_information() works in no rtti mode. 2019-11-11 15:57:03 +01:00
Raffi Enficiaud
ed04b2a5e6 Merge branch 'develop'
* develop:
  Reverting unrelated breaking change
2019-11-04 23:55:35 +01:00
Raffi Enficiaud
2f7bc05ba4 Reverting unrelated breaking change 2019-11-04 23:55:18 +01:00
Raffi Enficiaud
9c796e41ba Merge branch 'develop'
* develop:
  Change log
  Update execution_monitor.ipp
  Change log
  Documentation updates
  Normalizing test names accross several compilers
  Sanitizing template test cases that contain ',' in their name
  Change log
  Documentation update
  C++17 string_view support
2019-11-03 09:08:56 +01:00
Raffi Enficiaud
599b0bb76c Merge branch 'topic/PR-232-fix-timeout-in-windows' into next-internal
* topic/PR-232-fix-timeout-in-windows:
  Change log
  Update execution_monitor.ipp
2019-10-31 18:43:08 +01:00
Raffi Enficiaud
b19cf0eb75 Change log 2019-10-31 14:26:28 +01:00
mmitti
d9c0145161 Update execution_monitor.ipp 2019-10-31 14:25:52 +01:00
Raffi Enficiaud
d67b643309 Merge branch 'topic/GH-223-cannot-filter-template-test-cases' into next-internal
* topic/GH-223-cannot-filter-template-test-cases:
  Change log
  Documentation updates
  Normalizing test names accross several compilers
  Sanitizing template test cases that contain ',' in their name
2019-10-31 08:55:59 +01:00
Raffi Enficiaud
a3f9121a66 Change log 2019-10-31 08:54:50 +01:00
Raffi Enficiaud
ae01c8387c Documentation updates
- section about command line argument filtering for template test cases
- many typos fixes
- remove reference to bjam
2019-10-31 08:54:50 +01:00
Raffi Enficiaud
ae2e446cc0 Normalizing test names accross several compilers 2019-10-31 08:20:11 +01:00
Raffi Enficiaud
1c4533f765 Sanitizing template test cases that contain ',' in their name
- adding various smoke tests on the test command line filtering
2019-10-30 09:08:26 +01:00
Raffi Enficiaud
1119b669b7 Merge branch 'topic/GH-210-comparing-string-views' into next-internal
* topic/GH-210-comparing-string-views:
  Change log
  Documentation update
  C++17 string_view support
2019-10-30 08:17:53 +01:00
Raffi Enficiaud
0d3cc3c9c0 Change log 2019-10-30 08:15:57 +01:00
Raffi Enficiaud
d283016282 Documentation update 2019-10-30 08:15:57 +01:00
Raffi Enficiaud
d5cb100b1e C++17 string_view support
- subclassing cstring in order to be able to create an instance of cstring
  without changing its signature: the code remains C++03/C++17 compatibile
  even if boost.test is compiled with other options than the test module
- added casting and usage checks
- deduce_cstring rationale change
2019-10-30 08:15:57 +01:00
Raffi Enficiaud
4fcbba594b Merge branch 'develop'
* develop:
  Change log
  Avoiding any proxying of the boolean values
  Change log
  Removing calls to std::random_shuffle in favour of the drop-in replacement
  Change log
  Add printf format checking attribute to report_error
  Change log
  OpenBSD is missing SI_ASYNCIO and SI_MESGQ
  Change log template
2019-10-21 20:27:08 +02:00
Raffi Enficiaud
a1bafb22eb Merge branch 'topic/GH-229-random-shuffle-deprecation-warning' into next-internal
* topic/GH-229-random-shuffle-deprecation-warning:
  Change log
  Removing calls to std::random_shuffle in favour of the drop-in replacement
2019-10-20 18:40:05 +02:00
Raffi Enficiaud
265d1f9887 Merge branch 'topic/GH-217-init-list-boolean' into next-internal
* topic/GH-217-init-list-boolean:
  Change log
  Avoiding any proxying of the boolean values
2019-10-20 18:38:48 +02:00
Raffi Enficiaud
17c0bd5ffd Change log 2019-10-08 07:43:43 +02:00
Raffi Enficiaud
a3a07d08ee Avoiding any proxying of the boolean values
std::vector<bool>::const_iterator returns a temporary of a proxy class
while the value is needed for constructing the test case with parameters.

- added test reproducing the issue
2019-10-08 07:43:37 +02:00
Raffi Enficiaud
e93aabff5f Change log 2019-10-08 00:33:17 +02:00
Raffi Enficiaud
15c17c25c1 Removing calls to std::random_shuffle in favour of the drop-in replacement
The conditional call makes the code more complicated and fires a warning
on C++11 compilers about deprecation.
2019-10-08 00:32:34 +02:00
Raffi Enficiaud
5262170050 Merge branch 'topic/PR-231-defines-missing-openbsd' into next-internal
* topic/PR-231-defines-missing-openbsd:
  Change log
  OpenBSD is missing SI_ASYNCIO and SI_MESGQ
2019-10-05 15:09:47 +02:00
Raffi Enficiaud
ccef680d77 Merge branch 'topic/PR-227-printf-format-checking' into next-internal
* topic/PR-227-printf-format-checking:
  Change log
  Add printf format checking attribute to report_error
2019-10-05 15:08:46 +02:00
Raffi Enficiaud
bf42d28fd3 Change log 2019-10-05 12:26:37 +02:00
Edward Catmur
0aeb445fa4 Add printf format checking attribute to report_error
On gcc and clang, add __attribute__((__format__)) checking to the report_error function.

Cast faulting addresses to uintptr_t for formatting as 0x%08lx - this won't work on LLP64, but Win64 uses SEH anyway.
Fix swapped si_code/si_addr (& si_band) format arguments.
Add missing %s to format diagnostic information.

- Check __GNUC__ major : format attribute was introduced sometime during gcc 2.8, so 3 definitely has it.
  Same should apply for any compiler claiming GNUC compatibility
- Check that diagnostic information is not passed to format unescaped: If it is passed unescaped, the '%%' will be
  condensed to a single '%' and the test will fail.
2019-10-05 12:26:37 +02:00
Raffi Enficiaud
1b4a8b9aaa Change log 2019-10-05 12:20:55 +02:00
George Koehler
684f067dde OpenBSD is missing SI_ASYNCIO and SI_MESGQ
Check if SI_ASYNCIO and SI_MESGQ are defined as macros.  This allows
to run tests on OpenBSD 6.5, where the macros are missing.

This is identical to patch-boost_test_impl_execution_monitor_ipp in
OpenBSD Ports, except that I added a comment.
2019-10-05 12:20:15 +02:00
Raffi Enficiaud
3c0c20bfd1 Change log template 2019-10-05 12:18:21 +02:00
Raffi Enficiaud
866ff4a8d8 Merge branch 'develop'
* develop:
  Change log
  Master test suite name setup prior to all other setup
  Guiding the user for changing the include
  Change log
  Helper for restricting the use of numeric_limits to complete types
  Change log
  Removing references to deprecated headers
  Add BOOST_HEADER_DEPRECATED to deprecated headers
  Change log
  Commented out unused argument name (stack_decorator::apply)
2019-08-05 20:40:51 +02:00
Raffi Enficiaud
e112b88bbc Merge branch 'topic/GH-218-outstream-default-filename' into next-internal
* topic/GH-218-outstream-default-filename:
  Change log
  Master test suite name setup prior to all other setup

# Conflicts:
#	doc/closing_chapters/change_log.qbk
2019-07-27 13:47:19 +02:00
Raffi Enficiaud
fb16da3ba4 Change log 2019-07-27 11:40:07 +02:00
Raffi Enficiaud
2920098453 Master test suite name setup prior to all other setup
This is a simple call to a global setting that can be performed

- in an idempotent manner
- prior to any other setup

Since some loggers rely on the master test suite (generation of the
output files), this setting should precede any other. In particular,
it should not be delayed until the user `init_unit_test` is called. A global object fits this purpose.
2019-07-27 11:40:02 +02:00
Raffi Enficiaud
a029ff4b0f Merge branch 'topic/deprecation-better-wording' into next-internal
* topic/deprecation-better-wording:
  Guiding the user for changing the include
2019-07-27 11:20:58 +02:00
Raffi Enficiaud
711addd805 Guiding the user for changing the include 2019-07-23 14:15:30 +02:00
Raffi Enficiaud
898aba7f59 Merge branch 'topic/GH-209-BOOST_TEST-abstract-class-compare' into next-internal
* topic/GH-209-BOOST_TEST-abstract-class-compare:
  Change log
  Helper for restricting the use of numeric_limits to complete types
2019-07-21 22:54:27 +02:00
Raffi Enficiaud
4ae4b29a5f Change log 2019-07-21 21:14:53 +02:00
Raffi Enficiaud
a7afa8413a Helper for restricting the use of numeric_limits to complete types
Fixes GH-209.
A new helper meta-function has been added to check if the type under
test is complete or not. Incomplete types cannot be used with
std::numeric_limits.

The newly added test cannot be run on pre C++11 because of the limited
BOOST_TEST support (unrelated to the std::numeric_limits issue).
2019-07-21 21:14:38 +02:00
Raffi Enficiaud
7fbc8e8579 Merge branch 'topic/PR-224-BOOST_HEADER_DEPRECATED' into next-internal
* topic/PR-224-BOOST_HEADER_DEPRECATED:
  Change log
  Removing references to deprecated headers
  Add BOOST_HEADER_DEPRECATED to deprecated headers
2019-07-21 15:42:34 +02:00
Raffi Enficiaud
bf6907df49 Merge branch 'topic/PR-219-warning-stack_decorator' into next-internal
* topic/PR-219-warning-stack_decorator:
  Change log
  Commented out unused argument name (stack_decorator::apply)
2019-07-21 14:08:18 +02:00
Raffi Enficiaud
e6906152a2 Change log 2019-07-21 13:49:25 +02:00
Raffi Enficiaud
bee1a4076b Removing references to deprecated headers
- doc changes
- unit test changes
2019-07-21 13:49:25 +02:00
Luke Peterson
1a607b6867 Add BOOST_HEADER_DEPRECATED to deprecated headers 2019-07-21 11:31:27 +02:00