-
- Downloads
tests: Add macro for auto-error checking
Having our tests forced into a `goto out` style is seriously annoying since we can't write tests like we write production code. Add a macro that checks for the error being NULL. This doesn't fully solve the problem since the test functions are still forced into `void` returns; at some point I may extend GLib to have `g_test_add_err_func()`.
tests/libglnx-testlib.h
0 → 100644
Please register or sign in to comment