Skip to content
Snippets Groups Projects
Commit c2bcca04 authored by Colin Walters's avatar Colin Walters
Browse files

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()`.
parent 667d8aa7
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment