[PATCH 0/7] test: better backtracing in the test suite
Peter Hutterer
peter.hutterer at who-t.net
Thu May 7 22:57:43 PDT 2015
The check unit test framework isn't particularly suited to having ck_assert*
calls in helper functions. A failed assertion in a helper function or the
litest framework merely gives us a the failed line in litest.c.
which doesn't tell us which test actually failed.
We're using more and more helper functions to make the tests smaller, so in
most cases a test failure doesn't tell us where it failed. This patchset
adds a backtracing facility, copied from the xserver's xorg_backtrace().
For now it only changes the helper functions, not the tests, though it looks
like we can just do a general s/ck_assert/litest_assert/ if it turns out to
be helpful.
Cheers,
Peter
More information about the wayland-devel
mailing list