Commit graph

221 commits

Author SHA1 Message Date
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
Snaipe
1757752dd1 Added reporting & logging on theory failure 2015-09-03 17:29:46 +02:00
Snaipe
c9501805b6 Added support for theories 2015-09-03 06:38:44 +02:00
Snaipe
b940ad3790 [Issue #32] Added ability to test the exit status of a test. 2015-09-01 19:09:11 +02:00
Snaipe
b4fc22e7e4 Added -S switch to display the base name of source files 2015-08-20 08:05:44 +02:00
Snaipe
4d60e8ad91 Added missing license headers 2015-08-06 00:23:22 +02:00
Snaipe
371ffd5420 Added another expansion round for DECL_SECTION_LIMITS, fixes OSX compilation 2015-08-05 10:08:41 +02:00
Snaipe
86762f8ff7 Fixed windows code for section retrieving and changed section names to fit under 8 bytes. 2015-08-03 15:15:48 +02:00
Snaipe
0d7033cfd5 Made windows dynamically resolve the section limits at runtime 2015-08-01 13:44:58 +02:00