2
0
mirror of https://github.com/boostorg/test.git synced 2026-02-03 09:32:10 +00:00
Commit Graph

1244 Commits

Author SHA1 Message Date
Raffi Enficiaud
7adf75e367 NVCC support
Forcing the support for variadic macro on NVCC
2019-12-20 23:41:14 +01:00
Raffi Enficiaud
741ff88f56 Merge branch 'topic/GH-241-floating-point-strict-comparison-warning' into next-internal
* topic/GH-241-floating-point-strict-comparison-warning:
  Change log
  Silencing strict floating point comparison warning
2019-12-20 21:23:26 +01:00
Raffi Enficiaud
8831535002 Merge branch 'topic/PR114-unreachable-code-warning-MSVC' into next-internal
* topic/PR114-unreachable-code-warning-MSVC:
  Change log
  Adding some slack in a faulty timed test
  Silence MSVC unreachable code warning (/W4)
2019-12-20 21:23:18 +01:00
Raffi Enficiaud
a77b9ef5a9 Merge branch 'topic/GH-235-gcc-attribute-warnings' into next-internal
* topic/GH-235-gcc-attribute-warnings:
  Change log
  BOOST_TEST_DECL should evalute to nothing in the included variant
2019-12-20 21:22:40 +01:00
Raffi Enficiaud
adbdbf20f5 Silencing strict floating point comparison warning 2019-12-20 21:21:32 +01:00
Raffi Enficiaud
29f7c20e35 BOOST_TEST_DECL should evalute to nothing in the included variant
In the included variant, BOOST_TEST_DECL previously evaluated to
BOOST_SYMBOL_VISIBLE which causes warnings in some platforms
2019-12-20 21:21:21 +01:00
Norbert Wenzel
119a3a7294 Silence MSVC unreachable code warning (/W4)
BOOST_UNREACHABLE_RETURN creates several issues on
various MSVC compilers (manifest issue), curiously only
for the program monitor type of binaries. Making
a workaround for the time being.
2019-12-20 21:20:50 +01:00
Adam Wulkiewicz
a5fbe62859 Fix unused variable warning in unit_test_main.ipp 2019-12-20 21:20:17 +01:00
Raffi Enficiaud
13ca3e07f0 Making the virtual on dtor default on all compilers
BOOST_TEST_PROTECTED_VIRTUAL is active only for a very few number of
compilers. Make it default on all except some instead.
2019-12-12 21:46:10 +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
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
2f7bc05ba4 Reverting unrelated breaking change 2019-11-04 23:55:18 +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
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
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
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
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
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
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
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
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
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
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
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
Kedar R. Bhat
8dbdeced84 Commented out unused argument name (stack_decorator::apply)
Both GCC and Clang complain about the argument to `stack_decorator::apply` being unused; commenting out the variable name quiets the warning
2019-07-20 19:29:53 +02:00
Raffi Enficiaud
364b153de3 Timer should not be named on Windows
The name makes the visibility of the timer global. This fails builds
when they are run concurrently on the same machine.
2019-07-16 21:45:30 +02:00
Raffi Enficiaud
04006ad5bd Fix visibility warnings
Forward declarations for templates should also have the visibility right
Local static variables cannot have their visibility set and need to get out of the function scope.
2019-03-28 08:52:16 +01:00
Juan Alday
377695da54 Fixes issue with sun_cc lacking the __global attribute for enums
Fixes https://github.com/boostorg/test/issues/213
https://docs.oracle.com/cd/E19205-01/819-5267/bkaed/index.html
2019-03-28 07:26:44 +01:00
Raffi Enficiaud
6a8773f626 Merge branch 'doc/small-additions' into next-internal
* doc/small-additions:
  More about datasets and delayed ones
  Updates on what is a sequence.
  Test tree constrains and doc refactoring
2019-03-24 17:43:25 +01:00
Raffi Enficiaud
4f3806d802 Win32 waitable timer: better casting 2019-03-24 17:42:31 +01:00
Raffi Enficiaud
17ce78b0fe More about datasets and delayed ones 2019-03-24 17:41:37 +01:00
Raffi Enficiaud
b9d74d1f55 Merge branch 'topic/PR-212-ar-parameter-assertion_result-warning' into next-internal
* topic/PR-212-ar-parameter-assertion_result-warning:
  Change log
  Comment 'ar' parameter of assertion_result to avoid warning

# Conflicts:
#	doc/closing_chapters/change_log.qbk
2019-03-20 20:29:39 +01:00
Mateusz Łoskot
fa037a059e Comment 'ar' parameter of assertion_result to avoid warning 2019-03-20 20:28:34 +01:00
Rainer Deyke
5feed945fc Change Windows.h to lower case. 2019-03-20 08:25:52 +01:00
Raffi Enficiaud
fcd24729df New documentation section about runtime configuration
- adding tests for custom command line argument passing
- using command line argument in global fixtures and raising strong errors
- using command line argument in init function and describing the errors
- using command line argument dataset test cases and describing the errors
- removing sample totally from all the examples
2019-03-19 01:43:29 +01:00
Raffi Enficiaud
37dfcf2117 Merge branch 'topic/fix-win32-timed-test' into next-internal
* topic/fix-win32-timed-test:
  Change log
  Fixup _WIN32_WINNT definition
2019-03-05 21:56:34 +01:00
Raffi Enficiaud
0ed5a9a71f Merge branch 'topic/GH-198-support-boost-cmake-in-b2' into next-internal
* topic/GH-198-support-boost-cmake-in-b2:
  Change log
  Making the dynamic link aware of the b2/cmake defines
2019-03-05 21:54:25 +01:00
Raffi Enficiaud
7d71da7a7f Template test cases: handling the references and volatile in the test-case names 2019-03-04 21:02:13 +01:00
Raffi Enficiaud
9b3be27a9f Template test cases with arbitrary parameter pack
Using arbitrary parameter pack of a template
class/struct to infer the list of types, instead
of restricting to `std::tuples`.

Filtering the mpl::sequences from this logic because
the parameter pack is filled with `mpl::na` on non-entries.
2019-03-04 15:23:08 +01:00
Raffi Enficiaud
625bafd2cd Making the dynamic link aware of the b2/cmake defines 2019-03-03 20:42:28 +01:00
Raffi Enficiaud
504723babe Fixup _WIN32_WINNT definition 2019-03-03 16:15:56 +01:00
Raffi Enficiaud
7e20f966dc Junit counting fixups: failed and errored differences
Failed and errored are exclusive in the JUnit sense.
Counting the number of total tests slightly differently.

Changing slightly the signature of unit_test_log_formatter::log_build_info to avoid a sticky
state when the function was called only once (happens for instance in JUNIT).
2019-03-01 08:47:50 +01:00