[Intel-gfx] [PATCH i-g-t] lib/tests/igt_segfault.c Add unit test to test segfault handling

Daniel Vetter daniel at ffwll.ch
Tue May 26 08:26:58 PDT 2015


On Tue, May 26, 2015 at 5:05 PM, Derek Morton <derek.j.morton at intel.com> wrote:
> + * The test consists of three subtests. The first and third should pass
> + * while the second should cause a segfault.
> + * The overall result should be a failure with two subtests passing.

You need to split this up into separate binaries and mark the expected
failure with XFAIL_TESTS. Or write a short wrapper for it that checks
that we get the right kind of failure ...

Yeah, autoconf library tests aren't awesome I know.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch


More information about the Intel-gfx mailing list