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

1107 Commits

Author SHA1 Message Date
Raffi Enficiaud
3fb63194cd Fixing VS compilation issues
- VS2012 does not work well with decltype
- VS2013 has a buggy initialization_list that is detected in later updates and lead to a compilation error
2018-02-10 20:31:08 +01:00
Raffi Enficiaud
9f0291a6f1 forward_iterable: const_iterator infered by the type returned by begin
- fixing computation of size for types that have only begin/end
- adding test on the new type requirements
2018-02-04 20:42:53 +01:00
Raffi Enficiaud
7f70eff592 Merge branch 'topic/PR127-silence-unused-variable-warning' into next-internal
* topic/PR127-silence-unused-variable-warning:
  Change log
  Silence 'unused variable' warning
2018-01-31 23:42:33 +01:00
Marshall Clow
40e01f45e1 Silence 'unused variable' warning
Mac OS doesn't fall into the "UNIX based debugging" or "windows based debugging", so we get the "do nothing" behavior.
2018-01-31 22:46:24 +01:00
hia3
7ea2327848 Fix clang [-Wc++11-narrowing] error
Compiling on Windows with clang this code:

    #define BOOST_TEST_MODULE The Test
    #include <boost/test/included/unit_test.hpp>

command:

    "clang.exe" -c -x c++ test.cpp -Iboost -fno-ms-compatibility

produces:

    boost/test/utils/basic_cstring/basic_cstring.hpp:64:29: error: enumerator value evaluates to 18446744073709551615, which cannot be narrowed to type 'int' [-Wc++11-narrowing]
2018-01-29 10:51:11 +01:00
Raffi Enficiaud
009ef6d554 Merge branch 'topic/13407-cygwin-crash' into next-internal
* topic/13407-cygwin-crash:
  Change log
  Fix non-initialized variable causing crash on Cygwin
2018-01-19 09:21:03 +01:00
Raffi Enficiaud
724a839d82 Fix non-initialized variable causing crash on Cygwin 2018-01-19 09:15:12 +01:00
Raffi Enficiaud
d2468aa70e Merge branch 'topic/13387-header-fail-compile' into next-internal
* topic/13387-header-fail-compile:
  Change log
  Fix missing includes
2018-01-18 20:47:07 +01:00
Raffi Enficiaud
bfcfe83644 Merge branch 'topic/PR125-unused-parameters' into next-internal
* topic/PR125-unused-parameters:
  Change log
  prevent 2 unused parameter warnings
2018-01-18 20:46:45 +01:00
Benjamin Roland Buch
ea44314e71 prevent 2 unused parameter warnings 2018-01-18 20:27:38 +01:00
Raffi Enficiaud
5b6521c995 Fix missing includes 2018-01-18 15:10:15 +01:00
Raffi Enficiaud
06d43a2177 Adding the possibility to instanciate a template test case with tuples
Addresses 12092
2018-01-18 14:33:39 +01:00
Raffi Enficiaud
036832069a Some doxygen fixes 2018-01-18 14:04:03 +01:00
Raffi Enficiaud
9f2c32e0d8 Merge branch 'topic/12597-report-tests-with-clashing-names' into develop
* topic/12597-report-tests-with-clashing-names:
  Change log and doc update
  Avoiding duplicate test cases in template and param test cases
  Check for clashing names in adding test units
2018-01-18 14:03:39 +01:00
Raffi Enficiaud
0d6227d436 Addressing build failures on mingw/windows 2018-01-18 09:36:57 +01:00
Raffi Enficiaud
77bda1ffd2 Avoiding duplicate test cases in template and param test cases
- fixing logging on non-existant stream
- fixing doc test cases with duplicate test cases
- updating log and report tests
2018-01-02 20:41:32 +01:00
Raffi Enficiaud
306b55259d Check for clashing names in adding test units
- clashing on name only
- adding tests
2018-01-02 20:41:04 +01:00
Raffi Enficiaud
9c0f4f0698 Merge branch 'topic/12969-problems-nullptr' into next-internal
* topic/12969-problems-nullptr:
  Change log
  Fix issue when library is compiled with non C++14 options (trac 12969)
2017-12-31 00:21:43 +01:00
Raffi Enficiaud
c767b8790a Fix issue when library is compiled with non C++14 options (trac 12969) 2017-12-31 00:18:30 +01:00
Raffi Enficiaud
dcefa9f6d6 Merge branch 'topic/passing-random-generator-to-children-suites' into next-internal
* topic/passing-random-generator-to-children-suites:
  Bugfix passing random generator
2017-12-29 21:09:53 +01:00
Raffi Enficiaud
0c36fae06f Fix patch and regression tests 2017-12-29 21:07:34 +01:00
Namezero
cbd780ea5b Dependency decorators on parent suites (trac #13149)
Dependency decorators on parent suites are not honored when a nested test selected to run via command line
2017-12-29 21:07:34 +01:00
Raffi Enficiaud
6393f2daad Bugfix passing random generator 2017-12-29 20:59:02 +01:00
Raffi Enficiaud
0e63a8fe53 Merge branch 'topic/PR-122-fix-fallthrough-warnings-gcc' into develop
* topic/PR-122-fix-fallthrough-warnings-gcc:
  Change log
  Fix some fallthrough warnings with gcc >= 7.
2017-12-29 20:39:55 +01:00
Romain Geissler
5edea86f6d Fix some fallthrough warnings with gcc >= 7. 2017-12-25 17:00:33 +01:00
Raffi Enficiaud
7615362bdc Merge branch 'topic/PR-121-warning-fix' into next-internal
* topic/PR-121-warning-fix:
  Change log
  fix compiler warning
2017-12-25 16:46:56 +01:00
James E. King III
3f305cebf0 fix compiler warning 2017-12-25 16:44:22 +01:00
Raffi Enficiaud
fdc68b6e6d Merge branch 'topic/PR118-Update-VxWorks-support' into next-internal
* topic/PR118-Update-VxWorks-support:
  Change log update
  Adapt Boost.Test to VxWorks
2017-12-25 16:33:36 +01:00
Raffi Enficiaud
2b100e13ca Colorized and clearer help
- Color output on Windows
- Pretty printing of long docstrings
- Avoid colorizing streams we do not know
2017-12-25 16:31:40 +01:00
Brian Kuhl
93cc089c49 Adapt Boost.Test to VxWorks
- execution_monitor.ipp: m_sig_info doesn't have all the POSIX designated members and VxWorks has no USER signal
- basic_cstring.hpp: Diab compiler has limit on size of enum, similar to the IBM compiler
- VxWorks also has limited signals
2017-12-25 16:29:42 +01:00
Raffi Enficiaud
d4d71a6659 Removing unused headers 2017-07-30 18:03:50 +02:00
Raffi Enficiaud
66b5d58857 Extra ; 2017-07-17 09:24:06 +02:00
Raffi Enficiaud
42a59be6e6 Merge branch 'topic/11471-array-sequence' into next-internal
* topic/11471-array-sequence:
  Change log
  Documentation update
  Fixing array comparison semantics
  C-arrays are now considered as sequences
2017-07-14 12:46:55 +02:00
Raffi Enficiaud
3fb84ca894 Fixing array comparison semantics 2017-07-09 10:32:50 +02:00
Raffi Enficiaud
aece067770 C-arrays are now considered as sequences
Most of the difficulty came from the fact that c-strings are also c-arrays, but comparisons are made in a different way (eg. not considering the last \0 element in the computation of the size, etc)

- is_forward_iterable now just checks if the type has accessors that makes it forward iterable (no size member function for instance)
- new concept: is_forward_container_iterable that looks for forward_iterable access + size and specific types. This is needed in order to disambiguate the dataset creation for arrays from the ones for collections
- is_cstring is now only for the C-string type of arrays. std::string and basic_cstring are not a C-strings anymore
- new concept is_cstring_comparable: indicates that types can be compared as if they were strings
- new concept for converting types to a basic_cstring, used for comparisons
- wrapper for accessing the begin/end/size (works for containers and C-arrays
- copy ctor for basic_cstring
- boost.range(begin/end) does not work well for array types
2017-07-06 11:47:03 +02:00
Raffi Enficiaud
fcb302b66e Indicating the log level to the formatters for the contexts
- unit tests for the message part: for checking the dataset, we need to register it and then to re-run it under our own environment (so technically it runs twice in the test module)
- refactoring of tests for reusing the stream checker that is agnostic to filenames location, testing time, etc. Modifying the baseline outputs accordingly
2017-07-06 11:45:33 +02:00
Raffi Enficiaud
8b3e003aa4 Merge branch 'topic/removing-warnings' into next-internal
* topic/removing-warnings:
  Conflicting variable names
  Removing warnings
2017-07-06 11:41:42 +02:00
Raffi Enficiaud
8106d3d58e Merge branch 'topic/12228-header-compilation-independant' into next-internal
* topic/12228-header-compilation-independant:
  Change logs
  #12228: Adding missing headers to compile some files independantly

# Conflicts:
#	doc/closing_chapters/change_log.qbk
2017-07-06 09:28:21 +02:00
Raffi Enficiaud
ba552e68c4 Conflicting variable names 2017-07-04 08:59:10 +02:00
Raffi Enficiaud
72a62b6c16 #12228: Adding missing headers to compile some files independantly 2017-06-27 21:13:46 +02:00
Raffi Enficiaud
bf703c2628 Fixing the relational/comparison operators for floating points
- simplifying the logic behind the operations
- minor doc fixes
- tests output change slightly due to the fact that <= and >= are now going through the
  floating point comparison
2017-06-27 20:54:55 +02:00
Raffi Enficiaud
29b289b985 Removing warnings 2017-06-26 16:31:58 +02:00
Raffi Enficiaud
91253a1ab1 Warnings 2017-06-24 21:53:14 +02:00
Raffi Enficiaud
e1b211f254 Documentation update for the new macros
- BOOST_TEST_GLOBAL_FIXTURE explained
- BOOST_TEST_GLOBAL_INITIALIZATION explained
- changed the examples, deprecating BOOST_GLOBAL_FIXTURE
- in the logger part, introduced the fact that BOOST_TEST_GLOBAL_INITIALIZATION should be used and no assertion is supported in this case
2017-06-23 14:54:56 +02:00
Raffi Enficiaud
5757d9cd16 Fixing logging issues for JUnit with global fixtures
- considering skipped tests: a skipped test is not considered as an error, especially when there was no logged information
- removing CR/LF from TU names
- updating the JUnit output
- additional refactoring of junit
2017-06-22 09:22:57 +02:00
Raffi Enficiaud
8710eb8277 Fixture setup/teardown now applied to BOOST_FIXTURE_TEST_CASE familly of macros 2017-06-22 09:22:57 +02:00
Raffi Enficiaud
1ba4e0a9b8 Fixture setup/teardown detection for C++11 capable compilers 2017-06-22 09:22:56 +02:00
Raffi Enficiaud
847212ae0c Improving global initialization and fixtures
- new macros:
  BOOST_TEST_GLOBAL_FIXTURE: for global "real" fixtures
  BOOST_TEST_GLOBAL_CONFIGURATION: for global configuration of observers.
- deprecating BOOST_GLOBAL_FIXTURE. BOOST_GLOBAL_FIXTURE and BOOST_TEST_GLOBAL_CONFIGURATION are currently
  fully equivalent, the former being confusing in term of scope/role is deprecated
- SFINAE detection for a setup/teardown function within the fixture class
- Attaching global fixture to the main or master test unit being executed, exactly as other fixtures. Global fixtures
  via BOOST_TEST_GLOBAL_FIXTURE registers themselves in a particular field of the framework and are attached each time
  the framework executes the tests, such that we can run the framework on another test root and still benefit from the
  global fixtures. The global fixtures are appended to already existing fixtures (in case the master test suite is not
  the root of the current execution tree).
- Checking that the framework setup is not failing for running the test
- RAII class for restoring the global fixtures
- Tests on the setup/teardown detection
- Tests on global fixtures and baseline
- Fixing several logging issues

Some additional refactoring
- renaming m_curr_test_case to m_curr_test_unit
- function for providing the current test unit (and not only the current test case)
- for output_stream comparison: stops properly if the reference stream is shorter than the current one,
  initialises the read char correctly to 0 and prints a proper ~ at the mismatch location
2017-06-22 09:20:58 +02:00
Daniela Engert
f3a26e0cf9 Conditionally replace deprecated/removed C++98 binders, adapters, and random_shuffle by emulations using more modern equivalents.
Signed-off-by: Daniela Engert <dani@ngrt.de>
2017-05-01 10:11:47 +02:00
Raffi Enficiaud
cb2a1c2488 FPE: disabling support of the glibC extensions for uLibC std library
- this mimics the behaviour of boost 1.61 (external patch to BOOST_NO_FENV_H)
2017-03-18 08:18:59 +01:00