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

3115 Commits

Author SHA1 Message Date
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
3c0c20bfd1 Change log template 2019-10-05 12:18:21 +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
Raffi Enficiaud
55bf325d9c Change log 2019-07-21 11:30:26 +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
3924434b80 Merge branch 'topic/fix-windows-timer' into develop
* topic/fix-windows-timer:
  Change log
  Timer should not be named on Windows
2019-07-17 07:38:36 +02:00
Raffi Enficiaud
8711d0aad9 Change log 2019-07-16 21:47:52 +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
ec3aeac46b Merge branch 'hotfix/visibility-warnings' into develop
* hotfix/visibility-warnings:
  Change log
  Fix visibility warnings
  Fixes issue with sun_cc lacking the __global attribute for enums
2019-03-28 18:43:48 +01:00
Raffi Enficiaud
d31d52d691 Change log 2019-03-28 08:52:16 +01: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
9ffe07ebd0 Merge branch 'topic/cast-waitable-timer' into next-internal
* topic/cast-waitable-timer:
  Win32 waitable timer: better casting
2019-03-24 17:43:19 +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
ed83dc53c9 Updates on what is a sequence. 2019-03-24 17:41:37 +01:00
Raffi Enficiaud
3b08f3a436 Test tree constrains and doc refactoring
the test suite and master test suite are now part of a more general
section about the test tree. The constraints on the tree are now
visible on the TOC.
2019-03-24 17:40:35 +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
Raffi Enficiaud
95427e31d0 Change log 2019-03-20 20:28:38 +01:00
Mateusz Łoskot
fa037a059e Comment 'ar' parameter of assertion_result to avoid warning 2019-03-20 20:28:34 +01:00
Raffi Enficiaud
1569256173 Merge branch 'topic/PR-211-windows-h-lower-case' into next-internal
* topic/PR-211-windows-h-lower-case:
  Change log
  Change `Windows.h` to lower case.
2019-03-20 19:54:46 +01:00
Raffi Enficiaud
31b2b7596e Merge branch 'build/fix-travis' into next-internal
* build/fix-travis:
  Revert "Building this branch"
  Coverage should be in C++11
  Discard broken compilers
2019-03-20 19:54:38 +01:00
Raffi Enficiaud
cb3da2e068 Revert "Building this branch"
This reverts commit 1d7d57f85e.
2019-03-20 19:54:08 +01:00
Raffi Enficiaud
6702b9e4ae Change log 2019-03-20 19:50:48 +01:00
Raffi Enficiaud
b340dca6a2 Coverage should be in C++11 2019-03-20 08:56:08 +01:00
Raffi Enficiaud
a30e992fd2 Discard broken compilers 2019-03-20 08:45:17 +01:00
Rainer Deyke
5feed945fc Change Windows.h to lower case. 2019-03-20 08:25:52 +01:00
Raffi Enficiaud
96977228be Merge branch 'doc/custom-command-line' into develop
* doc/custom-command-line:
  Building this branch
  Passing the files as bjam run arguments
2019-03-19 23:33:21 +01:00
Raffi Enficiaud
1d7d57f85e Building this branch 2019-03-19 23:33:11 +01:00
Raffi Enficiaud
9e4510d552 Passing the files as bjam run arguments 2019-03-19 23:33:11 +01:00
Raffi Enficiaud
d44509b4e4 Merge branch 'doc/custom-command-line' into next-internal
* doc/custom-command-line:
  Change log
  New documentation section about runtime configuration
2019-03-19 01:47:30 +01:00
Raffi Enficiaud
c419184939 Change log 2019-03-19 01:43:37 +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
6e3360aa86 Change log 2019-03-05 21:56:23 +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
e8a1f583e7 Change log 2019-03-05 21:54:07 +01:00