-
Notifications
You must be signed in to change notification settings - Fork 403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove calls to error() from error.h. #787
Conversation
I'd add a |
I was not quite sure where to put it. Should |
test/helpers.c (definition) and test/helpers.h (declaration) |
test/helpers.h and test/helpers.c contains code like this to avoid every test needing to re-invent the wheel. And yes, just make it identical to error(), just use va_list and friends for this. |
Oh, wait... you can't use that helper from examples/, so I guess we have |
Looks good to me know, just a few minor nits that would be nice to address and this can go in. |
Add the background story to the commit message, please. |
This should go to the commit message. |
On musl systems, liburing cannot build examples and tests due to it's usage of error.h. t_error calls fprintf(stderr, ...) and exits. Closes: #786 Signed-off-by: Steffen Winter <steffen.winter@proton.me>
What about |
Yeah, just put it in that example file too. With that done and the commit messages update as requested, I think this is good to go. |
Yeah, I think it's the sanest way for now. Integrating |
Don't have identical git commit titles. Prefix one with test: and the other with examples: or something like that. |
On musl systems, liburing cannot build examples and tests due to it's usage of error.h. Replacing calls to error() with t_error(). Closes: #786 Signed-off-by: Steffen Winter <steffen.winter@proton.me>
Please fold the last two commits, we should not have a single PR introducing a problem and then a fixup for that afterwards. |
|
On musl systems, liburing cannot build examples and tests due to it's usage of error.h. t_error copied from test/helpers.c. Replacing calls to error() with t_error(). Closes: #786 Signed-off-by: Steffen Winter <steffen.winter@proton.me>
Looks good. |
On musl systems, liburing cannot build examples and tests due to it's usage of error.h. Replace all calls to error() with fprintf(stderr, ...) and exit(1).
Closes: #786
Signed-off-by: Steffen Winter steffen.winter@proton.me