Snaipe
0507dfcf50
licence: Added missing license header on io/output.c
2016-09-14 11:50:15 +02:00
Snaipe
301d143ea4
elf,section: Fixed section code interpreting all empty names as the current executable
...
This was causing crashes with eglibc which visits the loaded vdso with
an empty dlpi_name.
2016-09-14 01:23:08 +02:00
Snaipe
c48ffae4de
mach-o,section: Fixed compilation errors
2016-09-14 00:47:29 +02:00
Snaipe
731991fc18
hooks: Append diffs with tee rather than overwrite them
2016-09-13 23:38:49 +02:00
Snaipe
1c11db55ae
section: Added deep section inspection.
...
This allows loaded dynamic libraries to further provide default hooks,
suites, or even tests.
Fixes #160 .
2016-09-13 23:35:57 +02:00
Snaipe
8c840a8fd2
boxfort: Fixed windows builds
2016-09-13 13:21:40 +02:00
Snaipe
6d5fe5a6e1
dyncall: Fixed -fPIC warnings on windows and CXX requirement
...
Fixes #159 .
2016-09-13 12:56:20 +02:00
Kevin Locke
ba2c09e192
section: Close FD in open_module_self on error
...
If open_module_map encounters an error, open_module_self would return 0
while leaving the file descriptor open. Since close_module does not
validate the state of the mod_handle, callers can't know whether to call
close_module when this occurs.
Resolve this by closing the file descriptor before returning so that
mod_handle is never partially open.
Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2016-09-12 21:03:30 -06:00
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