Skip to content

tests: Fix error handling when testing gtestutils

Simon McVittie requested to merge wip/who-tests-the-tests-themselves into main

We had two compensating bugs here. We didn't correctly clear the error indicator after testing a test-case that calls g_test_fail(), which meant we were leaving the error set to exit status 1 when falling through to the next test; and then we didn't check the exit status of the next test, but instead assumed that g_spawn_sync() would fail (it does not).

Merge request reports