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

1295 Commits

Author SHA1 Message Date
Raffi Enficiaud
0e40b1c778 Just checking what it costs to remove the test tools 2023-03-02 10:59:10 +01:00
Alexander Grund
418581f576 Fix undefined behavior in basic_cstring::rfind (#360)
Co-authored-by: Matt Borland <matt@mattborland.com>
2023-02-06 09:20:21 -08:00
Matt Borland
343c6539fd Merge pull request #372 from mborland/unused
Silence unused variable warnings
2023-02-02 14:38:06 -08:00
Matt Borland
3cca5ff82b Fix for sprintf deprecation warning (#366) 2023-02-02 08:27:28 -08:00
Matt Borland
16ff4146ff Silence unused variable
Co-authored-by: Antony Polukhin <antoshkka@gmail.com>
2023-02-01 11:56:40 -08:00
Matt Borland
37a5b0e46e Silence apple unused variable 2023-02-01 11:54:46 -08:00
Edward Catmur
5fa30cd2d3 Use boost_test_print_type customization point in lazy_ostream
This makes BOOST_TEST_MESSAGE(x) consistent with BOOST_TEST(x).
2022-03-05 22:22:36 +01:00
Raffi Enficiaud
dac4978224 Fixing UB in basic_cstring<CharT>::trim_right
Rewriting the loop to stay within the valid range boundaries.
2022-03-05 19:23:15 +01:00
Edward Catmur
4820feeacc Replace anonymous enum arity with static const
enum arithmetics creates various warnings/errors in newer compilers.
2022-03-05 18:22:55 +01:00
Peter Klotz
099ac655f6 Export execution_aborted exception to allow catching it from outside the DLL 2022-03-03 22:11:18 +01:00
Ed Catmur
cdb782c092 UB comparing unrelated pointers in priority_order
Detected by asan with gcc10
2022-03-02 10:13:31 +01:00
Gabriel Hege
194a69ee9a fix uninitilized variable in framework_init_observer_t
fixes: #272
2022-03-01 22:39:31 +01:00
Raffi Enficiaud
2cb215d2d9 Fixing various issues that landed on C++17 compilers (MSVC)
* print_log_value now supports wchar_t
2022-03-01 21:54:22 +01:00
jzmaddock
f1966056ba Web assembly has no support for an alternate stack.
Fixes usage of Boost.Test when compiling for web assembly with emscripten.
2020-10-12 19:43:14 +01:00
Raffi Enficiaud
c6912015fe Merge branch 'topic/GH-264-GCC-override-warnings-suggestions' into next-internal
* topic/GH-264-GCC-override-warnings-suggestions:
  Change log
  Use BOOST_OVERRIDE to fix GCC -Wsuggest-override and Clang-tidy modernize-use-override warnings. Also fix misspellings in comments.
2020-05-09 19:27:46 +02:00
Raffi Enficiaud
288e72d1d9 Merge branch 'topic/PR-266-Embarcadero-C++-clang-based-compilers' into next-internal
* topic/PR-266-Embarcadero-C++-clang-based-compilers:
  Change log
  Printf check attribute factorization
  Inline friend function definitions for exported/imported classes
  Add Embarcadero to conforming implementation
  Change __BORLANDC__ to BOOST_BORLANDC,
2020-05-09 19:26:35 +02:00
Raffi Enficiaud
d4552e5c27 Merge branch 'topic/wchar_t-printer-fixup' into next-internal
* topic/wchar_t-printer-fixup:
  Fixing cast issue when logging wchar_t
2020-05-09 16:47:18 +02:00
Eugene Zelenko
e55dc9e657 Use BOOST_OVERRIDE to fix GCC -Wsuggest-override and Clang-tidy modernize-use-override warnings. Also fix misspellings in comments. 2020-05-09 16:42:31 +02:00
Raffi Enficiaud
715861818e Printf check attribute factorization 2020-05-09 16:28:57 +02:00
Edward Diener
5d0e43552a Inline friend function definitions for exported/imported classes
* must become declarations and inline definitions outside the class for Embarcadero C++ clang-based compilers. This bug has been reported to Embarcadero.
2020-05-09 16:28:57 +02:00
Edward Diener
db3c749f13 Add Embarcadero to conforming implementation 2020-05-09 16:28:57 +02:00
Edward Diener
363749cb9a Change __BORLANDC__ to BOOST_BORLANDC,
* using definition from Boost.Config for the Embarcadero non-clang-based compilers.
* Embarcadero C++ clang-based compilers act like clang ( __GNUC__ ) in regard to SEH based signal handling.
* The __cdecl calling convention is valid for Embarcadero C++ clang-based compilers
2020-05-09 16:23:37 +02:00
Raffi Enficiaud
8d46d569a6 Adding LLDB as debugger 2020-05-09 16:09:24 +02:00
Raffi Enficiaud
db6b98c727 Fixing cast issue when logging wchar_t 2020-05-09 10:42:59 +02:00
Tom Hughes
80abc2b80e Make under_debugger work on apple (iOS/macOS) 2020-05-09 10:39:02 +02:00
Pino Toscano
92e1131fb0 Use macOS API only on macOS
__MACH__ matches any Mach-based OS, which means both macOS and GNU/Hurd;
since the API used is really specific to macOS, then also check for
__APPLE__.
2020-04-20 08:31:02 +02:00
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