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

1269 Commits

Author SHA1 Message Date
Partha P. Mukherjee
e48498ab04 Suppress the unused parameter warning for root_test_unit_id
The parameter root_test_unit_id causes unused parameter warning.
2020-04-17 14:58:29 -04:00
Raffi Enficiaud
123c28959a Merge branch 'topic/PR-187-BOOST_TEST-with-tolerance-message' into next-internal 2020-04-08 17:47:06 +02:00
Raffi Enficiaud
b0bcb56d6d Formatting improvements for the collection comparisons
- now report in more details the reasons of a mismatch for per element
- now report in more details the reasons of a stopping condition for per lexicographic
- punctuation
- now indicates better the operations names as well as their inverse
- tolerance manipulator commutes with stream message
2020-04-08 17:41:17 +02:00
Raffi Enficiaud
656638e431 Holding the state of the floating point comparison expression mutator
Now part of the assertion evaluation context, such that various
mutator can be stacked.
2020-04-08 17:41:17 +02:00
Raffi Enficiaud
53da1d4171 Removing unused file 2020-04-07 20:04:07 +02:00
Raffi Enficiaud
961646222e Activating the auto-link only in the main translation unit
This allows the inclusion of various translation units with mixed
header/non-header variant, without the need to specify any of the
auto-linking +/- disabling macros.

Updated unit tests to capture the issue.
2020-04-06 16:14:30 +02:00
Raffi Enficiaud
2f79bfffd3 Merge branch 'topic/GH-253-invalid-XML-log-BOOST_AUTO_TEST_CASE_TEMPLATE' into next-internal
* topic/GH-253-invalid-XML-log-BOOST_AUTO_TEST_CASE_TEMPLATE:
  Change log
  GH-253 XML logger not handling skipped test names
2020-04-06 10:40:08 +02:00
Raffi Enficiaud
f5043a1aa4 Printing context messages takes logger each logger state and configuration
Previously all loggers were looped in the context helper, which causes
duplicate context messages and discards the log level of each of the
loggers.

Associated unit tests: they have to save their save_pattern state into
another global mechanism as the junit tests are changing the runtime configuration.
Those new tests asserts inside JUnit before the fix.
2020-04-06 10:36:43 +02:00
Raffi Enficiaud
ec2c41501a GH-253 XML logger not handling skipped test names
- xml logger handles properly the name property of a skipped test
- unit test
2020-04-04 22:59:10 +02:00
Raffi Enficiaud
b29815a78d Logging improvements
- "configure" the logger singleton when setup changes
- returning previous log levels
- reducing the number of loggers on startup: now only the active loggers (that are logging something) are used during the test execution. This reduces the
  loops and the number of tests
2020-04-04 22:57:57 +02:00
Raffi Enficiaud
1e0abd6e41 Observers test_start now contain the root test unit id
In order to start on a subtree, we need to pass the root of the subtree
to the start.
2020-04-04 22:57:57 +02:00
Raffi Enficiaud
a689b25454 Framework init observer is not a singleton anymore
- Used only during the initialization/deinit of the framework to catch any issues in the global fixtures
  or other observers initialization.
- Removed during tests execution to reduce overhead
- Not a singleton anymore
2020-04-04 22:57:57 +02:00
Raffi Enficiaud
089d7c6f9d Warning removal 2020-04-04 02:52:18 +02:00
Raffi Enficiaud
53cb585382 "setcolor" now uses an external state for all state restoration scenarios 2020-04-04 02:52:12 +02:00
Raffi Enficiaud
3a37312261 Merge branch 'topic/GH-245-code-coverity-test-defect' into next-internal
* topic/GH-245-code-coverity-test-defect:
  Change log
  Fix unintialized value in some execution paths
2020-03-29 17:58:59 +02:00
Raffi Enficiaud
a8445128ba Merge branch 'topic/GH-246-incorrect-deprecation-usage' into next-internal
* topic/GH-246-incorrect-deprecation-usage:
  Change log
  Fixing the messages in BOOST_HEADER_DEPRECATED
2020-03-29 17:58:11 +02:00
Raffi Enficiaud
fc418f83c7 Fix unintialized value in some execution paths 2020-03-29 17:10:48 +02:00
Raffi Enficiaud
b7de53f84f Fixing the messages in BOOST_HEADER_DEPRECATED 2020-03-29 17:04:30 +02:00
Raffi Enficiaud
9916fdb189 Silence coverity warning by explicitly setting the umask
This is the default in recent versions of libc/libgcc but apparently
coverity is picky about it.
2020-03-29 16:55:41 +02:00
Raffi Enficiaud
5bdf2d9254 Merge branch 'topic/GH-220-support-nvcc' into next-internal
* topic/GH-220-support-nvcc:
  Change log
  NVCC support
2020-03-28 21:18:40 +01:00
Raffi Enficiaud
fb4c9bb420 Merge branch 'topic/PR-252-operator-chevron-ill-formed-on-wchar' into next-internal
* topic/PR-252-operator-chevron-ill-formed-on-wchar:
  Change log
  Fix compilation issue due to deleted std::basic_ostream::operator<< overload
2020-03-28 21:13:32 +01:00
Raffi Enficiaud
8d75795d85 Merge branch 'topic/PR-259-deprecated-bind-placeholders' into next-internal
* topic/PR-259-deprecated-bind-placeholders:
  Change log
  Avoid deprecated bind placeholders in global namespace
2020-03-28 21:12:23 +01:00
Laurent Stacul
8ac88c62dc Fix compilation issue due to deleted std::basic_ostream::operator<< overload 2020-03-28 20:16:01 +01:00
Mateusz Łoskot
3a836b52d7 Avoid deprecated bind placeholders in global namespace
This fixes numerous compilation warnings:

  note: #pragma message:
    The practice of declaring the Bind placeholders (_1, _2, ...)
    in the global namespace is deprecated.
    Please use <boost/bind/bind.hpp> + using namespace boost::placeholders,
    or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.
2020-03-07 23:12:30 +01:00
Giovanni Mascellani
3fef3732f2 Use __linux__ instead of __linux.
The macro __linux is less portable and, for example, is not defined on
some architectures.

See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=28314.
2020-01-03 09:14:47 +01:00
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