Skip to content
Snippets Groups Projects
Commit ae0e26db authored by Simon McVittie's avatar Simon McVittie
Browse files

tests: Check error indicator before checking boolean result


If a GLib function that raises an error fails unexpectedly during
testing, it's a lot more informative to see an assertion failure that
includes details of the error, rather than just the boolean result.

For a conventional GLib function we should not look at the "out"
parameters until we have checked that the function was successful.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent c6b8b14f
No related branches found
No related tags found
1 merge request!96tests: Check error indicator before checking boolean result
Pipeline #2209 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment