Commit graph

1186 commits

Author SHA1 Message Date
Kevin Locke
7581417dfa section: Call close_module for open_module_self
Commit a3df2ab abstracted the section handling into several functions.
For ELF, the newly created open_module_self opens a file descriptor to
the executable file which should be closed from close_module.  The
close_module call is missing in report.c and runner.c, causing EMFILE
errors during test runs when the available file descriptors are
exhausted.  This commit fixes the issue.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2016-09-12 20:53:08 -06:00
Snaipe
39c14abdcc boxfort: Updated submodule 2016-09-11 21:09:57 +02:00
Snaipe
696e648efe i18n: Fixed remaining positional arguments in non-localized strings 2016-09-10 13:03:27 +02:00
Snaipe
0d2521b279 travis,stylecheck: Fixed missing fi error 2016-09-10 11:12:10 +02:00
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
59ed78c4a2 githooks: Fixed precommit hook not producing good patches 2016-09-10 08:47:37 +02:00
Snaipe
ca965d3db9 section,elf: Fixed missing ElfW definition on FreeBSD. Fixes #156 2016-09-10 08:47:24 +02:00
Snaipe
bb61aef765 version,readme: Fixed broken version badge 2016-09-07 10:43:08 +02:00
ailu
1e28ad1277 fix: set criterion_options.debug to CR_DBG_NATIVE
criterion_options.debug was not set if no argument was given. According
to the docs the native debugger should used, so this member has to be
set to CR_DBG_NATIVE
2016-09-06 22:01:03 +02:00
Snaipe
cfd3212a4a sample,asserts: Fixed wrong usage of cr_assert_arr_eq_cmp in C++ 2016-09-06 20:56:42 +02:00
Snaipe
c5bfe03733 section: Resolve /proc/self/exe for compatibility with introspection tools like valgrind 2016-09-06 20:03:36 +02:00
Snaipe
fc2cf1f9d2 version: bumped version to 2.3.0-dev 2016-09-06 19:11:16 +02:00
Snaipe
c99827489a bumpversion: include rc & dev suffixes 2016-09-06 19:08:03 +02:00
Snaipe
d83dbb60cf Revert "cmake: Build libcriterion.so as an executable PIE"
This reverts commit 8959dfa83f.
2016-09-06 18:23:04 +02:00
Snaipe
fcc3d92d5d version: Fixed reported version 2016-09-06 18:23:04 +02:00
ailu
44849f9ea4 doc: fixed debug-transport arguments 2016-09-06 18:11:03 +02:00
Snaipe
50d0a20e5e travis: Fixed spurious fi as reported 2016-09-06 18:08:27 +02:00
Snaipe
02bb993419 po: Updated line counts 2016-09-06 18:03:41 +02:00
Snaipe
8959dfa83f cmake: Build libcriterion.so as an executable PIE 2016-09-06 18:02:38 +02:00
Snaipe
b29e662432 contributing: Added bit on commit messages 2016-09-06 11:02:08 +02:00
Snaipe
d886913438 cram: Fixed line counts 2016-09-06 10:50:28 +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
314c15fd9b travis,style: Only run the style check on PRs 2016-09-05 22:47:19 +02:00
Snaipe
64c0e1f501 contributing: Updated to reflect the style check 2016-09-05 22:24:25 +02:00
Snaipe
fff1d0a168 style: Make uncrustify silent 2016-09-05 22:13:23 +02:00
Snaipe
f32a46694a style: Use 'internal' rather than '<internal>' for API macro implementations 2016-09-05 22:09:25 +02:00
Snaipe
48650f965c travis: Added style check 2016-09-05 22:04:34 +02:00
Snaipe
d2a4124b87 style: Added and enforce uncrustify config 2016-09-05 21:32:57 +02:00
Snaipe
ec7cbe2a18 style: disable indent for delicate places 2016-09-05 20:45:46 +02:00
Snaipe
f72ffff3ca style: ignore style for coroutine macros 2016-09-05 15:12:25 +02:00
Snaipe
033bac0c5e style: disable indent for delicate places 2016-09-05 14:36:00 +02:00
Snaipe
bae428393a cmake: Fixed missing include 2016-09-05 13:50:02 +02:00
Snaipe
8d8731053d cram: Updated tests for cr_skip_test() strings 2016-09-05 10:22:03 +02:00
Snaipe
bd4760582f timeout: Fixed --timeout always overriding 2016-09-05 10:20:23 +02:00
ailu
fbbfcb6d61 added gdb and coverage how to
check side note of #127, addition to #114
2016-09-05 10:08:52 +02:00
ailu
91250fed74 Fixed output of skipped tests 2016-09-05 10:04:10 +02:00
Snaipe
205b9a4444 cmake: Cleaned up definitions and default flags a bit 2016-09-04 22:21:20 +02:00
Snaipe
0b191be52a cram: Fixed tests for --timeout 2016-09-04 21:55:19 +02:00
Snaipe
4e1a877c66 cli: Added --timeout flag 2016-09-04 21:06:25 +02:00
Snaipe
e7ab23d67a style: removed extra semicolons 2016-09-04 20:50:58 +02:00
Snaipe
9a68415eb2 cram: Fixed tests to account for time 2016-09-04 12:19:56 +02:00
Snaipe
553869aa5c cmake: Fixed uninstall rule not removing symlinks 2016-09-04 11:35:26 +02:00
Snaipe
bbd5fab174 cmake: Added uninstall rule 2016-09-04 11:27:21 +02:00
Snaipe
da7df99bff cli: Fixed unused variable error 2016-09-04 11:25:41 +02:00
Snaipe
24f0d34eda cli: Fixed leak with dbg parameter parsing 2016-09-04 11:10:40 +02:00
Snaipe
0a0574cb59 cli: Fixed handling of bad arguments 2016-09-04 11:08:39 +02:00
Snaipe
f0cfc6d18d cli: Fixed parsing for --debug-transport 2016-09-04 11:08:10 +02:00
Snaipe
7aa0b1c5ce runtime: Fixed timestamps not being reported. Fixes #116 2016-09-04 10:38:05 +02:00
Snaipe
63d0bc8a4e boxfort: Updated for PID mismatch fix in debug mode 2016-09-04 09:38:14 +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