2
0
mirror of https://github.com/boostorg/test.git synced 2026-01-27 19:32:11 +00:00
Commit Graph

900 Commits

Author SHA1 Message Date
Gennadiy Rozental
fc2083eca2 Support for build with no exceptions 2015-07-08 00:49:31 -04:00
Gennadiy Rozental
374ccc8a4e remove Interaction testing related flag 2015-07-07 21:44:59 -04:00
Gennadiy Rozental
8ed4b8f7d0 Merge branch 'develop' of github.com:boostorg/test into develop 2015-07-07 21:02:07 -04:00
Gennadiy Rozental
40d8bb7139 disable break_exec_path 2015-07-07 20:57:03 -04:00
Gennadiy Rozental
89b3d9e9fb more conversion warnings cleaned up 2015-07-07 17:42:56 -04:00
Gennadiy Rozental
496433f9a4 Fixes #10256 2015-07-07 17:13:13 -04:00
Gennadiy Rozental
b6f43b5a71 more warnings cleanup 2015-07-07 17:03:57 -04:00
Gennadiy Rozental
c20710f967 timeout declared as unsigned eliminating number of warnings 2015-07-07 15:54:15 -04:00
Gennadiy Rozental
761f74e692 avoid spaces in test case names 2015-07-07 13:44:53 -04:00
Gennadiy Rozental
5291e67e3f expand message on unrecognized signal 2015-07-07 13:06:55 -04:00
Gennadiy Rozental
f7ada43cf0 protect define 2015-07-07 13:02:05 -04:00
Gennadiy Rozental
eca6b70158 Introduce --list_labels CLA 2015-07-05 22:28:27 -04:00
Raffi Enficiaud
f1f39fa2ee Removing throw from dtor 2015-06-29 23:07:24 +02:00
Gennadiy Rozental
998f9fbaf1 avoid non Linux/Sun warnings 2015-06-24 13:29:33 -04:00
Marek Kurdej
01294f9738 Fix type fixure -> fixture. 2015-06-23 16:55:36 +02:00
Gennadiy Rozental
232ccbdb00 fixed DEBUGGABLE handling and added new test modules 2015-06-22 22:27:26 -04:00
Gennadiy Rozental
3f7216db3d semicolon should trail macro 2015-06-12 05:36:02 -04:00
Gennadiy Rozental
443c73d9ce . 2015-06-11 04:24:13 -04:00
Gennadiy Rozental
80e548963c . 2015-06-11 04:23:12 -04:00
Gennadiy Rozental
091a2f5eac . 2015-06-11 03:30:41 -04:00
Gennadiy Rozental
fd1aa4c25f test reorganization 2015-06-05 17:38:15 -04:00
Raffi Enficiaud
4b2d2c420d A bit of more documentation on output_test_streams 2015-06-03 01:35:46 +02:00
Raffi Enficiaud
fdb4f6b5e5 Mentionning cyclic dependency
"" around the name of the test
2015-06-02 22:40:00 +02:00
Raffi Enficiaud
7decd403d8 Fixing the unit test: variadic macros are not declared properly by the preprocessor library for C++11 2015-06-02 22:40:00 +02:00
Andrzej Krzemieński
e445ea7de4 Silenced "(unsigned)-1" warning
This warning was polluting my testing results.
2015-06-02 16:30:53 +02:00
Raffi Enficiaud
555d018d39 Fix MSVC tests 2015-06-01 16:44:17 +02:00
Raffi Enficiaud
6c78d81f84 Merge branch 'patch-3' of https://github.com/akumta/test into tractickets/11347-fix-sun-compiler-deficiencies 2015-05-29 10:56:02 +02:00
Raffi Enficiaud
6f83c21b25 Merge branch 'patch-2' of https://github.com/akumta/test into tractickets/11347-fix-sun-compiler-deficiencies 2015-05-29 10:55:35 +02:00
Raffi Enficiaud
c4ea25fa93 Merge branch 'local/fix_floating_point_strict_ordering' into develop
Conflicts:
	include/boost/test/tools/fpc_op.hpp
2015-05-29 10:40:42 +02:00
Gennadiy Rozental
d65cef7a75 simplified implementation of strict order 2015-05-28 11:59:23 -04:00
Andrzej Krzemieński
b17702816a Changed v == T(0) to v == 0
With this change we get a *desired* compile time failure when we are passed type `T` that is not implicitly convertible from `int` but is explicitly convertible. Now, we make an implicit conversion from `int` a requirement and refuse to compile otherwise.

This addresses an issue where the user gives us a type `T` with non-intuitive construction from `int`.
2015-05-28 17:15:01 +02:00
akumta
8da4f20e3e Update test_case.hpp
Update D_S with DataSet
2015-05-28 07:16:17 -07:00
akumta
55797bfcc9 Update fwd.hpp
Updated D_S to DataSet
2015-05-28 06:56:33 -07:00
Raffi Enficiaud
e8e4f747e8 Fix for floating point comparison using strict ordering 2015-05-28 14:00:49 +02:00
Gennadiy Rozental
71c349e5cc Merge pull request #66 from akrzemi1/patch-5
v * FTP(0.01)  -->  v / 100
2015-05-28 02:42:05 -04:00
Gennadiy Rozental
194b9e3b92 minor reformatting 2015-05-28 02:40:46 -04:00
Andrzej Krzemienski
817ac936c9 Don't use std::numeric_limits when is_specialized is false
Prior to this change, in floating-point computations, in the case
where we work for types where std::numeric_limits are not specialized,
funcitons min() and max() from std::numeric_limits<FPT> are nonetheless
instantiated and return FPT(0). While the result is never used in run-time,
this may still trigger a compile-time failure.

After this change, the paths for the cases where std::numeric_limits are not
specialized are handled by separate specializations rather than run-time if
statements.
2015-05-26 23:03:11 +02:00
akumta
836403474f Update test_case.hpp
Possible solution for #11347.
2015-05-26 11:58:55 -07:00
akumta
13343b7f06 Update fwd.hpp
Possible solution for #11347.
2015-05-26 11:14:04 -07:00
Raffi Enficiaud
e9f77a93b1 mks -> us (microseconds) 2015-05-26 13:55:48 +02:00
Andrzej Krzemieński
a30b08ff1c v * FTP(0.01) --> v / 100
Rationale:
Because we are not using the literal of type double, we avoid the bug where `FTP(0.01)` is evaluated as `FTP(int(0.01))` for FPT types that do not offer a conversion from `double`.
I do not use an explicit cast `v / FPT(100)` in order to allow the compiler to see that we are dividing by the integer, and engage optimizations for that case, if any.
By `v / 100` I require that conversion from int to FPT is implicit, and thereby avoid executing explicit constructors, which may have non-conversion semantics.
To the best of my knowledge, `v / 100` is not less accurate than `v * 0.01`. It may be slower, but given that this is evaluated in BOOST_TEST, which does lots of ops on IO streams, this should be negligible; plus, we are affecting only a percentage tolerance manipulator -- not the floating-point comparison itself.
2015-05-26 10:31:24 +02:00
Andrzej Krzemienski
757aa2aa02 FP comparisons do not use default constructor
Changed the occurences of FPT() to FPT(0). Since we expect a construction from int anyway,
and since the previous implementation assumed that the default constructor initializes to
numeric vaue zero, the change appears uncontroversial. What we gain, is that the default
ctor is no longer required. The FP algos work for non-default-constructible types.
2015-05-25 22:09:48 +02:00
Gennadiy Rozental
d15f4c4f52 interaction based testing is killed (for now) 2015-05-24 18:40:56 -04:00
Gennadiy Rozental
d264b4b6f1 fixed test unit ordering with finally correct algo 2015-05-24 02:28:40 -04:00
Edward Diener
324326d62d Add needed MPL header file. 2015-05-19 12:15:21 -04:00
Raffi Enficiaud
a1f41372f5 renamed files
part on container comparison using natural operator
part on per-element comparison
2015-05-19 15:22:37 +02:00
Raffi Enficiaud
2325c19609 typo 2015-05-18 16:47:33 +02:00
Gennadiy Rozental
3c62597b8f make sure 0.01 is cast to FPT 2015-05-16 03:00:39 -04:00
Raffi Enficiaud
e1e12c713a typo 2015-05-15 21:02:37 +02:00
Andrzej Krzemieński
3d31ec85fc close_at_tolerance: changed t >= 0 to t >= FPT(0)
My floating point type is not implicitly convertible from literal 0. close_at_tolerance should work with it as well.
2015-05-12 09:15:58 +02:00