Commit graph

39 commits

Author SHA1 Message Date
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
c299b8dd85 style: Fixed (A) Op (B) formatting taking 'Op' as a function rather than an operator 2016-09-06 10:49:10 +02:00
Snaipe
d2a4124b87 style: Added and enforce uncrustify config 2016-09-05 21:32:57 +02:00
Snaipe
033bac0c5e style: disable indent for delicate places 2016-09-05 14:36:00 +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
a3df2ab9a4 section: introspect sections without linker extensions. Fixes #91 2016-09-03 21:55:32 +02:00
Snaipe
32fea80b7d api: Don't use free directly with cr_asprintf. Fixes #87 2016-09-03 08:33:34 -07:00
Snaipe
aa9b2aa915 cli: Added --debug. Fixes #85. 2016-09-03 15:14:06 +02:00
commit
f201d85e3c Behavior of cr_assert_str* assertions changed:
- Default assertion messages will now print the expession and the content of both strings.
- String assertions will not crash, if the actual string is NULL.
  (cr_assert_not_null(actual) is called before the cr_assert_str* assertion)
2016-06-07 16:56:17 +02:00
Snaipe
38653a6414 Merge branch 'master' into bleeding
This merges the changes brought by 2.2.1 into bleeding.
2016-04-13 11:57:37 +02:00
Snaipe
952687c4c9 doc: Integrated doxygen docs for parameterized tests in sphinx 2016-04-10 16:27:35 +02:00
Snaipe
91c85cb2bc Integrated theories doxygen into sphinx docs 2016-04-10 15:17:06 +02:00
Snaipe
411bdb73df Moved actual implementation of Test & TestSuite in internal/test.h 2016-04-10 15:12:32 +02:00
Snaipe
8bcc21e55c Moved CR_STDN definition to commons 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
Snaipe
c5b4ca27d7 Fixed redirected standard streams being leaked by cr_(assert|expect)_std(out|err) 2016-03-05 15:51:50 +01:00
Snaipe
de5ec40466 Fixed out of bounds during assert message sending 2016-02-22 16:56:00 +01:00
ailu
70a5b88763 added licenses 2016-02-18 07:31:57 +01:00
Snaipe
9e0a746a2e Fixed typo in deprecation macro 2016-02-18 00:05:15 +01:00
Snaipe
8ab938d06d Added deprecation for old criterion logging macros 2016-02-18 00:05:15 +01:00
Snaipe
ec5c8958cb Fixed naming convention conflicts for internal variables used by the implementation of cr_assert 2016-02-16 17:47:02 +01:00
Snaipe
1f674d3ffb Fixed empty format string warning with GCC 4.8 2016-02-16 17:35:14 +01:00
Snaipe
8c1c9c05ee Fixed file-to-file comparison assert message being corrupted 2016-02-10 23:27:51 +01:00
Snaipe
e638cf3d43 Merge branch 'features/io-rewrite-nanopb' into bleeding 2016-01-18 01:35:55 +01:00
Snaipe
f4e444a8d3 Integrated new protocol into the core 2016-01-11 12:21:58 +01:00
Snaipe
2461574214 We're in 2016. 2016-01-06 17:35:35 +01:00
Snaipe
78a62465e9 Merge branch 'features/language-decouple' into bleeding 2015-12-08 13:52:29 +01:00
Snaipe
f913940427 Fixed decoupling for parameterized tests and fixed missing definitions 2015-12-08 02:36:23 +01:00
Snaipe
c681d2a42e Added doxygen for parameterized.h 2015-12-08 00:34:38 +01:00
Snaipe
30c3afedda Added first tentative to decouple the wrappers from the library 2015-12-05 01:37:58 +01:00
Snaipe
5101a514a3 Moved cr_translate_assert_msg out of the public API 2015-11-27 15:42:05 +01:00
Snaipe
d55869a5e5 Moved criterion_test_params to internal API 2015-11-27 13:44:38 +01:00
Snaipe
090e8571fe Added missing license headers 2015-11-27 12:55:24 +01:00
Snaipe
fa29b3c6db Added back GCC 4.6 support 2015-11-25 20:10:09 +01:00
Snaipe
a7d5ecf69c Refactored redirections and hooks 2015-11-18 16:31:31 +01:00
Snaipe
586f29128d Refactored the implementation of parameterized tests macros to internal/ 2015-11-17 18:24:44 +01:00
Snaipe
bbc5edfb34 Refactored the implementation of theory macros in internal/ 2015-11-17 17:49:27 +01:00
Snaipe
9b993abb93 Refactored tests and assertions implementation to internal/ 2015-11-17 17:33:44 +01:00
Snaipe
7fa0b6580b Refactored internal headers into its own subdirectory 2015-11-17 16:30:00 +01:00