Criterion icon indicating copy to clipboard operation
Criterion copied to clipboard

A cross-platform C and C++ unit testing framework for the 21st century

Results 101 Criterion issues
Sort by recently updated
recently updated
newest added

This is a catch-all issue to track the inclusion of Criterion on various distributions, and any user-maintained alternatives in the meantime. It's a major headache to maintain myself unofficial/user packages...

Bug
Major

I'm trying to check the stderr and I keep getting the a crash. This example crashes: ``` Test(check_argc, possible_stack_sizes) { check_argc_test(1, false, ""); check_argc_test(2, false, "Error\n"); } ``` While this...

Criterion won't build on MacOS 12.2. I am getting the following error: ../src/core/theories.c:27:10: fatal error: 'ffi.h' file not found #include I've traced this to this line in build when I...

Needs Update

I'm organizing a small hackathon on my campus and I'm wondering whether it is possible to make a portable folder that students can use. I'm part of the 42 network...

I'm trying to move to using the bleeding branch, which comes with Meson build system instead of CMake. Does anyone have any advice on how to add this as a...

Needs Update

fixed with a `PIPE_DUP` flag #314 `fclose` close the associated `fd` when called. In order to avoid an invalid `read/free` afterwards, when calling `pipe_in` with the same `fd`, the argument...

Criterion version: 2.3.3 OS: Fedora 30 Compiler: GCC 9.2.1 ```c #include #include #include static void skip(void) { cr_skip_test("Minimal skip"); } TestSuite(c, .init=skip); Test(c, should_skip, .signal=SIGSEGV) { strlen(NULL); } Test(c, should_skip_too)...

Bug

Minimized reproduction: https://gist.github.com/CamJN/dc4b1f61cec5aa2953cbe17bdb919ea4 Compiles and run with: `clang -l criterion test.c && ./a.out --verbose 2` Weird results: ``` [----] Criterion v2.3.3 [====] Running 1 test from parseInt: [RUN ] parseInt::failure...

I am working on a project which uses an API that defines a struct with pointers to functions to provide flexible functionality. I've been writing tests to confirm a little...

Hi, ~~So I was using Criterion 2.3.2-1 (from the AUR) and had some issues with clang++ and cr_assert_throw. Seeing on of the issues solved in the 2.3.3, I recompiled Criterion...