Snaipe

Results 76 comments of Snaipe

Leaving it off by default is probably the better default. Fork safety is very delicate and not guaranteed to work on all platforms & pthread implementations, and not all users...

`waitid(2)` is mainly use to check whether a child is ready to be reaped without reaping it now, using WNOWAIT (and leaving that up to a later wait syscall). It...

To clarify: Windows support (or \ for that matter) isn't going away on the side of Criterion. However, we'll slowly stop publishing binary archives on GitHub releases. The rationale is...

`cr_assert_stderr_eq_str` can only work if `cr_redirect_stderr()` is called first. See the [redirect.c example](https://github.com/Snaipe/Criterion/blob/bleeding/samples/redirect.c#L9) for an example on how to use it. That said, it definitely shouldn't be crashing, but just...

Actually, re-reading this, I think I'm getting what's wrong -- calling cr_assert_stderr_eq_str multiple times in the test is technically not allowed, in the sense that the function consumes the entirety...

That SIGPIPE seems consistent with what the function does. cr_assert_stderr_eq_str consumes the entire stream until EOF, which means that the writer needs to close the stream -- calling it twice...

The semantics you propose seem OK, but I'd rather have this be fully replaced with the cr_stream API (and even have `cr_{assert,expect}_{stdout,err}_eq_{str,file}` be implemented under the covers with an appropriate...

Thanks to @MrAnno's efforts, Criterion is packaged and readily available on macOS via `brew` -- you should be able to tell your students to just `brew install criterion`. If you...

The old one is indeed deprecated in favor of the new one -- that being said, the old API is not going anywhere for a while, and it is still...

I would certainly expect this to work. Do you get an error building?