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

1169 Commits

Author SHA1 Message Date
Raffi Enficiaud
5a2ee25b54 Using boost/core facility to silence unused variables
- removing boost.test workaround for unused variables
- deleting a file that apparently is not needed anymore
2019-02-03 20:05:23 +01:00
Peter Jansson
92ec933350 Check for non-used variables when NDEBUG is defined
When NDEBUG is defined, the compiler may warn about variables not used. They are only used in assert's.
2019-02-03 12:30:07 +01:00
Raffi Enficiaud
1f88919c6b Deregistration of global objects at framework shutdown time
The change ensures that the framework unregisters all the global fixtures and
configuration when it is shut down. This prevents the global fixtures/configuration
to deregister themselves at destruction time, which requires the framework to be
still existing, and for which the order of destruction cannot be ensured during
the unwinding of static/global objects.
2019-02-02 11:22:07 +01:00
Raffi Enficiaud
acbcd74993 Visibility fixes
+ Warning fixup
2019-02-02 00:38:49 +01:00
Raffi Enficiaud
aec7ebe78e GH-180: warning for unreachable return statement 2019-02-02 00:38:00 +01:00
Raffi Enficiaud
b45052bba9 Check warning removal 2019-02-02 00:38:00 +01:00
Raffi Enficiaud
f6e76d728c Suppressing the missing-declaration warning 2018-10-30 23:54:09 +01:00
Raffi Enficiaud
78e3d165d2 Fix MSVC 2012 2018-10-29 10:46:14 +01:00
Raffi Enficiaud
f3e4174572 Addressing #13380: join returning reference to temporary
Raising an error in case of reference to temporary by changing the compiler options.
Seems to work better than any other programmatic check.

Removing the need for the sample type definition from datasets.
2018-10-29 10:45:59 +01:00
Antony Polukhin
ecd4498193 Deal with unused variable warning 2018-10-03 20:25:41 +03:00
Raffi Enficiaud
ab14f53233 Merge branch 'topic/GH-156-comparison-to-infinity' into develop
* topic/GH-156-comparison-to-infinity:
  Change log
  Doc update
  Fix tolerance when one of the numbers is infinity
2018-10-01 22:43:16 +02:00
Raffi Enficiaud
3aad132efd Catching boost::exception before std::exception
- improving the support for boost::exception
- adding test
2018-09-29 21:19:08 +02:00
Raffi Enficiaud
89c4f1e7d7 Doc update 2018-09-29 10:07:58 +02:00
Raffi Enficiaud
626c01338d Fix tolerance when one of the numbers is infinity 2018-09-29 10:01:24 +02:00
Raffi Enficiaud
412fcc6e12 Merge branch 'topic/GH-158-boost_test_print_type-printing-on-single-value' into next-internal
* topic/GH-158-boost_test_print_type-printing-on-single-value:
  Change log
  Unary expression: fixing the printing issue
2018-09-25 06:45:34 +02:00
Raffi Enficiaud
5ce01d4c9b Scoped color returning to initial color 2018-09-24 21:20:15 +02:00
Raffi Enficiaud
cc7796fbe9 Unary expression: fixing the printing issue 2018-09-24 20:27:46 +02:00
Raffi Enficiaud
c4e2813f6d Merge branch 'topic/PR-161-self-containment-in-b2' into next-internal
* topic/PR-161-self-containment-in-b2:
  Change log
  Fixing self-containment issues
  Add check for self-containment of includes
2018-09-24 07:24:25 +02:00
Jürgen Hunold
57c804bc11 Fixing self-containment issues 2018-09-24 07:23:16 +02:00
Raffi Enficiaud
fb7ce3d2f8 Merge branch 'topic/GH-163-slowdown-at-startup' into next-internal
* topic/GH-163-slowdown-at-startup:
  Change log
  Delaying the check on duplicate names during the test initialization
2018-09-24 07:00:39 +02:00
Raffi Enficiaud
22985a64c1 Merge branch 'topic/PR-154-fix-scoped_color' into next-internal
* topic/PR-154-fix-scoped_color:
  Fix: scoped_color does not return the previous color
2018-09-24 06:59:06 +02:00
Raffi Enficiaud
4a1e3eb8cb Fix: scoped_color does not return the previous color
- minor cleanups
2018-09-24 00:50:48 +02:00
Raffi Enficiaud
21537234e1 Documentation update 2018-09-24 00:47:13 +02:00
Raffi Enficiaud
4c978f7383 Delaying the check on duplicate names during the test initialization
- Updating tests and ensuring that suites with similar names can coexit
2018-09-24 00:46:11 +02:00
Raffi Enficiaud
cb5201fa56 Making boost::execution_exception visible 2018-09-24 00:45:29 +02:00
Raffi Enficiaud
e021ca8b68 Removing the singleton related files 2018-09-24 00:45:29 +02:00
Raffi Enficiaud
f08bd860b2 Removing broken Singleton pattern
The singleton is not robust to initialization in several translation units between
shared library with hidden visibility. Removing

Fixing tests accordingly.
2018-09-23 23:44:47 +02:00
Raffi Enficiaud
4df5b095ea Merge branch 'topic/PR-151-BOOST_CLANG-define' into next-internal
* topic/PR-151-BOOST_CLANG-define:
  Change log
  Fix warning: BOOST_CLANG is not defined, evaluates to 0
2018-09-03 07:08:58 +02:00
Raffi Enficiaud
9bada60a62 Merge branch 'topic/PR-154-correct-non-color-output-handling' into next-internal
* topic/PR-154-correct-non-color-output-handling:
  Change log
  Further cleanup
  When specifying --color_output=no, don't output color codes either
2018-09-02 17:39:10 +02:00
Mateusz Łoskot
462945118e Fix warning: BOOST_CLANG is not defined, evaluates to 0
The diagnostic is issued when compiled with GCC/clang flag -Wundef.

Although in case BOOST_CLANG is not defined, ie. is not a macro
and BOOST_CLANG identifier is considered to be zero, the #ifdef
directive makes the intention clearer.
2018-09-02 17:36:58 +02:00
Raffi Enficiaud
4152af64b4 New macro for manually adding tests by specifying the name
- BOOST_TEST_CASE_NAME for specifying the name of the test case to add
- Documentation updates
2018-09-02 17:33:29 +02:00
Raffi Enficiaud
cdb401ec62 Further cleanup 2018-09-02 10:23:16 +02:00
Nathan Toone
ab714742f5 When specifying --color_output=no, don't output color codes either 2018-09-02 10:22:58 +02:00
Raffi Enficiaud
a82df91f33 Updating runtime cla-help 2018-06-27 12:30:10 +02:00
Raffi Enficiaud
d477598759 Removing tabs 2018-06-27 12:30:10 +02:00
Raffi Enficiaud
b4e08ee4bf Merge branch 'topic/12953-access-master_test_suite-in-datatest-cases' into next-internal
* topic/12953-access-master_test_suite-in-datatest-cases:
  Change log
  Another example with different arity
  Datasets based on std::initializer_list fixes
  Delayed/lazy dataset construction
  Handling sequences of size 0

# Conflicts:
#	doc/closing_chapters/change_log.qbk
#	test/Jamfile.v2
2018-06-27 10:26:54 +02:00
Raffi Enficiaud
b178b8d9a8 Datasets based on std::initializer_list fixes
Since the previous changes, the elements of the std::initializer_list
get destroyed before the test tree initializes properly. The changes
are

- not relying on a moved std::initializer_list for storing the values
of the dataset. Those are moved to a std::vector instead if the
move constructor is noexcept as expected by std::vector,
- providing a template parameter pack for the same type of constructs
in place of the std::initializer_list

Some of the changes are also related to the fact that VS2013 does not
handle properly the std::initializer_list vs template parameter pack.
2018-06-27 10:22:46 +02:00
Raffi Enficiaud
dea96e77bc Delayed/lazy dataset construction
The dataset generators need to access runtime variables, which is
possible only after the test framework enters its setup.

The purpose of those changes is to instanciate the dataset and populate
the test tree during the initialization phase and not during the static
instanciation of the different test case:

- new delayed dataset type that is used for holding the parameters of a dataset
  and its type. This dataset will be instanciated on demand (lazy construct)
- the test tree is now able to hold a generator until the init phase of the test
  module. Once the init reached, the lazy datasets are instanciated and the test
  tree populated with new tests.
- operations like zip do not require the size earlier than needed
2018-06-27 10:22:46 +02:00
Raffi Enficiaud
6752427ecc Bugfix short form of runtime parameters
The fact that the separator is empty for most of the short version
of the runtime parameters make it such that the parameter is considered
as another/next token.
2018-06-27 10:11:46 +02:00
Raffi Enficiaud
977c48fc6c Handling sequences of size 0 2018-06-26 15:58:38 +02:00
Raffi Enficiaud
0591dc21d3 Updating the documentation
- difference between skipped and disabled tests
- examples
- additional comments in the code
2018-06-25 20:12:37 +02:00
Raffi Enficiaud
9a9e1467fd Precondition failure is not an error and better handling of skipped tests
- Skipped tests is not an error
- Handling of skipped tests
  - Now printing when a test has been skipped because of the failed precondition
  - More demonstrative test
- Unit test reproducing the precondition error issue
2018-06-25 20:10:51 +02:00
Raffi Enficiaud
3f5d06cb22 Merge branch 'topic/13528-crashes-with-report_sink' into next-internal
* topic/13528-crashes-with-report_sink:
  Change log
  Execute the callback cleaner also for stdout/stderr
  Ensuring shutdown in all execution path

# Conflicts:
#	doc/closing_chapters/change_log.qbk
2018-06-21 22:12:35 +02:00
Raffi Enficiaud
3b968571ab Execute the callback cleaner also for stdout/stderr 2018-06-21 22:11:48 +02:00
Raffi Enficiaud
b785e7b4ee Ensuring shutdown in all execution path
- added corresponding smoke test
2018-06-21 20:15:34 +02:00
Raffi Enficiaud
090814233f Merge branch 'topic/prevent-master-test-suite-from-copy' into next-internal
* topic/prevent-master-test-suite-from-copy:
  Change log
  Preventing the copy of the master test suite
2018-06-20 23:03:23 +02:00
Raffi Enficiaud
8f80e9de8c Preventing the copy of the master test suite 2018-06-20 22:38:07 +02:00
Raffi Enficiaud
2974245af9 Declaring all variables for floating point exceptions for the unsupported case 2018-06-20 20:11:17 +02:00
Raffi Enficiaud
9bd8ff4dd0 Guarding template test case with tuples declaration better 2018-04-27 18:07:04 +02:00
Reimar Döffinger
a0c4c81318 Change Windows.h include to all-lowercase.
Otherwise cross-compiling with MinGW on Linux
will fail.
2018-03-26 21:19:57 +02:00