Commit graph

179 commits

Author SHA1 Message Date
Snaipe
8688a5df4b Fixed MinGW header bug where off_t/off64_t is not defined
(See http://sourceforge.net/p/mingw/bugs/2024/)
2015-09-15 23:02:46 +02:00
Snaipe
697c165fbe Changed the timeout type to double 2015-09-15 22:56:29 +02:00
Snaipe
3a2fe96653 Added file mocking utility 2015-09-15 19:02:13 +02:00
Snaipe
8986414138 Added default message to file asserts 2015-09-14 04:15:48 +02:00
Snaipe
b0869165af Added more file assertions and file comparison function 2015-09-14 03:58:25 +02:00
Snaipe
779fbca56e Added redirection assertion shortcuts for std{out,err} 2015-09-14 03:39:52 +02:00
Snaipe
0e2203df43 Renamed file assertion macros for consistency 2015-09-14 03:35:13 +02:00
Snaipe
5e8491af90 Added any_throw and none_throw assertions 2015-09-14 03:24:25 +02:00
Snaipe
d4271865bc Added default message for throw assertions 2015-09-14 02:14:46 +02:00
Snaipe
98a892d344 [Issue #33] Merge branch 'features/redirect' into bleeding 2015-09-13 14:03:55 +02:00
Snaipe
20c93d86de Fixed GCC-specific code being visible to MSVC 2015-09-13 13:45:10 +02:00
Snaipe
9882f987cf Fixed memory leak on cr_assert() 2015-09-13 13:12:16 +02:00
Snaipe
ac6415d465 Added C++ stream interface for redirection functions 2015-09-13 13:11:11 +02:00
Snaipe
e29d5a13cf Added timeout code for tests 2015-09-12 17:27:59 +02:00
Snaipe
3dc9d47c0b Added file assertions for redirection 2015-09-11 02:15:45 +02:00
Snaipe
53c9edc23e Added redirection functions 2015-09-10 05:33:35 +02:00
Snaipe
e2a3a51e3c [Issue #37] Added assert message localization & french translation 2015-09-10 03:40:50 +02:00
Snaipe
d6ef9f61ad Improved assert messages 2015-09-09 01:29:20 +02:00
Snaipe
565ed9a672 Made the deprecation message work with MSVC 2015-09-08 23:08:27 +02:00
Snaipe
d1fce372a4 Reformatted criterion/assert.h 2015-09-08 23:07:45 +02:00
Snaipe
8628b5fbea Removed unused exception variable name from throw assersions 2015-09-08 22:48:06 +02:00
Snaipe
3ba88bb314 Extracted GCC-specific pragma from the assert macro 2015-09-08 22:41:50 +02:00
Snaipe
5247808140 Renamed asprintf to cr_asprintf for compatibility 2015-09-08 22:12:22 +02:00
Snaipe
29860d46be Made criterion_continue_test static 2015-09-08 20:48:30 +02:00
Snaipe
9969604915 Moved the pipe definition out of the API, and use the system asprintf declaration when available 2015-09-08 20:36:23 +02:00
Snaipe
9c58e8d1e1 Added empty string assertions 2015-09-08 20:25:22 +02:00
Snaipe
01831b2ed5 Fixed crashes introduced by the API change 2015-09-08 19:21:53 +02:00
Snaipe
4d114fdd38 Changed the assert interface to accept a format string 2015-09-08 18:49:24 +02:00
Snaipe
b8374bca16 [Issue #36] Added throw assertions 2015-09-07 20:09:28 +02:00
Snaipe
afad78c433 Added generated datapoints theory sample 2015-09-07 18:03:05 +02:00
Snaipe
d7466dc0e5 Refactored the default main to allow dynamic test registration 2015-09-07 15:55:36 +02:00
Snaipe
aca092b9d6 Refactored CLI parameter handling in its own function for reusability 2015-09-07 15:27:15 +02:00
Snaipe
60760092b4 Fixed __VA_ARG__ warnings & added -pedantic to c++ samples 2015-09-07 10:22:37 +02:00
Snaipe
a9f325874a Switched type of 'passed' to bool instead of int 2015-09-07 08:37:28 +02:00
Snaipe
59e91f9404 Removed extra semicolon 2015-09-07 08:24:52 +02:00
Snaipe
47d1293303 Made the theory interface C++11-compatible 2015-09-07 08:22:02 +02:00
Snaipe
f35bc3d21c Fixed VC++ not registering any sections and internal crashes due to test data not being zero-filled 2015-09-07 07:26:53 +02:00
Snaipe
63f47f170a Added zero-filling code for assert stats before sending them to the monitoring process 2015-09-07 05:13:34 +02:00
Snaipe
b594f5cf8a Added missing section suffix on report hooks on Windows VC builds 2015-09-07 03:02:41 +02:00
Snaipe
dc0f871d0e Fixed mismatching parenthesis in section attribute on OS X 2015-09-07 02:59:29 +02:00
Snaipe
ba051b8869 Fixed missing initializer for C samples on assert substitution 2015-09-07 02:20:18 +02:00
Snaipe
8e66ff173f Restored cr_abort_test default message 2015-09-07 01:57:05 +02:00
Snaipe
416b034fe1 Made the interface C++11-compatible 2015-09-07 01:15:31 +02:00
Snaipe
c03a149507 Added common usage assume macro functions for theories 2015-09-06 21:59:50 +02:00
Snaipe
7577cf8940 Fixed all criterion-related warnings with MSVC 2015-09-06 07:23:21 -07:00
Snaipe
45fc694639 Marked with dllexport/import API functions 2015-09-06 00:37:30 +02:00
Snaipe
11eb4a9f10 Added __VA_ARGS__ macro expansions in theories.h for MSVC compatibility 2015-09-05 10:38:24 -07:00
Snaipe
e8e81a7dd5 Added expansion round on __VA_ARGS__ in assert macros for MSVC compatibility 2015-09-05 10:08:59 -07:00
Snaipe
d756a2f858 Started to take another try for MSVC compatibility 2015-09-05 15:31:14 +02:00
Snaipe
5d25030a6c [Issue #31] Merge branch 'features/theories' into bleeding 2015-09-03 19:00:15 +02:00