Kevin Locke
07c380d6b7
asserts: Add assertions for wide strings
...
This commit creates _wcs_ variants of the _str_ assertions for operating
on wchar_t * instead of char *. The assertions are useful for programs
using wchar_t strings, particularly on Windows where use of the wide
character version of the Windows API is encouraged by Microsoft.
Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2016-09-10 08:48:30 +02:00
Snaipe
f32a46694a
style: Use 'internal' rather than '<internal>' for API macro implementations
2016-09-05 22:09:25 +02:00
Snaipe
d2a4124b87
style: Added and enforce uncrustify config
2016-09-05 21:32:57 +02:00
ailu
7143118b5c
api: added cr_skip_test()
...
Added cr_skip_test to skip a test during runtime. Also merged the old
disable system with the new one. All skipped tests are printed by
normal_log_post_suite(), so there is no need for a logger function for
runtime skipepd tests.
Fixes #131 .
2016-09-03 23:06:35 +02:00
Snaipe
e24d2f3c79
doc: Ignore deprecated assertions
2016-04-10 15:17:06 +02:00
Snaipe
cbe733b7f9
Fixed doxygen warnings on unknown <type> xml tag
2016-04-10 15:12:32 +02:00
Snaipe
c270c02940
Fixed asserts doxygen & integrated them into the assertion reference
2016-04-10 15:12:32 +02:00
ailu
4bea3d5ce2
Add doxygen documentation in API headers
2016-02-20 13:09:20 +01:00
Snaipe
2461574214
We're in 2016.
2016-01-06 17:35:35 +01:00
Snaipe
5101a514a3
Moved cr_translate_assert_msg out of the public API
2015-11-27 15:42:05 +01:00
Snaipe
9b993abb93
Refactored tests and assertions implementation to internal/
2015-11-17 17:33:44 +01:00
Snaipe
6917eb4bda
[Issue #74 ] Added __clang__ checks on assert.h __GNUC__ ifdefs for better source searching
2015-11-16 20:41:32 +01:00
Snaipe
edc72c9554
Removed math.h dependency on base assertions
2015-11-16 18:19:26 +01:00
Snaipe
4148d3d5d4
[Issue #64 ] Prefixed all unprefixed API functions and types
2015-10-02 15:10:41 +02:00
Snaipe
461c56e8e9
Removed deprecated 1.x unprefixed assertion macros
2015-09-24 00:15:32 +02:00
Snaipe
8986414138
Added default message to file asserts
2015-09-14 04:15:48 +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
9882f987cf
Fixed memory leak on cr_assert()
2015-09-13 13:12:16 +02:00
Snaipe
3dc9d47c0b
Added file assertions for redirection
2015-09-11 02:15:45 +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
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
a9f325874a
Switched type of 'passed' to bool instead of int
2015-09-07 08:37:28 +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
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
e8e81a7dd5
Added expansion round on __VA_ARGS__ in assert macros for MSVC compatibility
2015-09-05 10:08:59 -07:00
Snaipe
0179f32b01
Only define _ASSERT_H when it is not already defined
2015-04-25 17:28:06 +02:00
Snaipe
b0e5becfb9
Added better deprecation message
2015-04-25 17:04:47 +02:00
Snaipe
58581f5b18
[Issue #20 ] Added cr_ prefix to all assertion macros
2015-04-25 16:45:31 +02:00
Snaipe
b8d44f433a
Added macro alias for assert and enhanced compatibility with assert.h
2015-04-24 00:32:20 +02:00
Snaipe
589bcf60fd
Added assert_null and structure arrays asserts
2015-04-14 19:44:30 +02:00
Snaipe
c583e7e742
[Issue #17 ] Fixed nested failed asserts not aborting the test
2015-04-14 18:39:40 +02:00
Snaipe
45793a9ede
Refactored types out of criterion.h
2015-03-23 00:41:48 +01:00
Snaipe
547bd032d2
Renamed equal asserts, added asserts sample in README, added abort_test
2015-03-17 16:11:32 +01:00
Snaipe
45f9eca9cd
Made asserts -pedantic compliant
2015-03-16 18:28:37 +01:00
Snaipe
32fd6376ad
Removing useless extra parenthesis in assert
2015-03-11 06:38:33 +01:00
Snaipe
15ee9539fa
Fixed expect_strings expanding to assert
2015-03-11 06:34:03 +01:00
Snaipe
431a683e85
Added assert_float_not_equal, fixed bad comparison operator for floating-point equality
2015-03-11 06:33:19 +01:00