Commit graph

352 commits

Author SHA1 Message Date
Snaipe
1d908327d8 Fixed erroneous indirection logic for passed data 2015-09-20 13:59:10 +02:00
Snaipe
582fa18389 Added parameterized tests 2015-09-20 13:59:10 +02:00
Snaipe
b655e3b1f2 Merge branch 'patch' into bleeding (Fixes #50) 2015-09-20 12:49:49 +02:00
Snaipe
5ecca806e1 Changed each section entry to be a pointer to the actual test/suite structure 2015-09-20 03:35:28 -07:00
Adeel
09602eb47a Build: Improves preprocessor directives for BSD.
* Also adds a search path `/usr/local/include` to top-level CMakeLists.

Fixes #48.
2015-09-19 16:28:57 +03:00
Snaipe
981e63f63b Merge branch 'patch' into bleeding (Fixes critical issue) 2015-09-19 14:55:20 +02:00
Snaipe
4e5d416114 [Issue #46] Fixed wrong setjmp usage 2015-09-19 14:46:03 +02:00
Snaipe
43865a5045 Fixed BSD check macros 2015-09-19 14:43:28 +02:00
Snaipe
98366789f6 [Issue #45] Fixed memory leak on global pipe 2015-09-18 00:46:18 +02:00
Snaipe
ab9763c8cf Fixed windows async worker termination reporting 2015-09-17 06:30:04 -07:00
Snaipe
e011939d5e Fixed OSX not registering the sigchld handler 2015-09-17 06:09:56 -07:00
Snaipe
0850658785 Changed the windows worker waiting code as well 2015-09-17 04:37:29 +02:00
Snaipe
75b9e7dae2 Changed the worker waiting code to be event-driven 2015-09-17 04:07:43 +02:00
Snaipe
a9232f584c Added missing headers in windows build 2015-09-17 00:14:32 +02:00
Snaipe
ddc68c2e33 Exposed pipe internals for windows fork 2015-09-16 23:21:39 +02:00
Snaipe
53f73ff938 Added missing headers 2015-09-16 23:08:31 +02:00
Snaipe
9b083a14b2 Refactored most of the sources 2015-09-16 21:18:58 +02:00
Snaipe
a1d28f84e7 Refactored posix-compat.c 2015-09-16 21:00:15 +02:00
Snaipe
29dcad096b Added short-circuit for cr_file_match_file 2015-09-16 02:08:06 +02:00
Snaipe
3a2fe96653 Added file mocking utility 2015-09-15 19:02:13 +02:00
Snaipe
8986414138 Added default message to file asserts 2015-09-14 04:15:48 +02:00
Snaipe
b0869165af Added more file assertions and file comparison function 2015-09-14 03:58:25 +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
98eb5e45a6 Added elapsed time on time out 2015-09-13 15:02:13 +02:00
Snaipe
98a892d344 [Issue #33] Merge branch 'features/redirect' into bleeding 2015-09-13 14:03:55 +02:00
Snaipe
17a609ba88 Fixed windows redirect code not working for stderr 2015-09-12 10:22:14 -07:00
Snaipe
6c35c64456 Fixed windows redirection not replacing standard file pointers 2015-09-12 09:33:55 -07:00
Snaipe
30e71b42eb Corrected the windows redirect code for pipe initialization 2015-09-12 08:52:03 -07:00
Snaipe
7bc54daaad Switched windows timer code to a thread-based implementation 2015-09-12 17:27:59 +02:00
Snaipe
e29d5a13cf Added timeout code for tests 2015-09-12 17:27:59 +02:00
Snaipe
d1861db6d0 Removed debug code 2015-09-11 02:50:17 +02:00
Snaipe
2642c420f4 Added missing header to posix-compat.c 2015-09-11 02:38:10 +02:00
Snaipe
9444d4f0a1 Fixed windows redirect pipe code 2015-09-11 02:27:08 +02:00
Snaipe
3dc9d47c0b Added file assertions for redirection 2015-09-11 02:15:45 +02:00
Snaipe
3744d67b0c Fixed typo in cr_redirect in windows-specific code 2015-09-10 05:36:03 +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
2d7456fd76 Prevent optimizations from zero-summing the wait condition on forked processes on windows 2015-09-09 16:20:49 +02:00
Snaipe
352123b2d5 Fixed rare worst-case out-of-bounds access in extmatch algorithm 2015-09-09 03:00:49 +02:00
Snaipe
9896377a47 Added clarification to the proof of the extmatch length heuristic 2015-09-09 02:56:54 +02:00
Snaipe
5247808140 Renamed asprintf to cr_asprintf for compatibility 2015-09-08 22:12:22 +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
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
f6b6139607 Fixed regression on --pattern handling 2015-09-07 16:17:16 +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
416b034fe1 Made the interface C++11-compatible 2015-09-07 01:15:31 +02:00
Snaipe
ee1828ff46 Fixed UB introduced by the previous commit 2015-09-06 07:54:20 -07:00