Daniel Vetter cd1f220847 lib/drmtest: extract igt_fork from gem_concurrent_blt
Making sure that we correctly collect the exit codes from all children
is a bit a hassle. So add another magic igt codeblock for easy forking
and joining.

Note that children are (currently at least) not allowed to call igt_skip.
Add an assert to enforce this.

v2:
- Properly propagate the exit code.
- Fix the segfault.
- Add a child int and num_children paramter to the magic codeblock as
  suggested by Chris Wilson.
- Don't dump noise into stdout when a child thread fails, the parent
  will do that for us already.

v3: Now with some docs.

v4: Fixup igt_waitchildren to properly reset state so it can be used
again.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-29 18:18:33 +02:00
..
2013-08-20 22:26:32 +02:00
2012-04-10 16:23:18 +02:00
2013-07-21 22:04:20 -07:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-14 18:02:46 +02:00
2013-08-13 15:07:44 +02:00
2013-08-14 18:02:46 +02:00
2013-08-14 18:02:46 +02:00
2013-08-14 18:02:46 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-14 18:02:46 +02:00
2013-08-13 15:07:44 +02:00
2013-08-26 19:44:31 +02:00
2013-08-13 15:07:44 +02:00
2013-08-14 18:02:46 +02:00
2013-08-14 18:02:46 +02:00
2013-08-14 18:02:46 +02:00
2013-08-14 18:02:46 +02:00
2013-08-13 15:15:18 +02:00
2013-08-12 12:20:22 +02:00
2013-08-12 12:20:22 +02:00
2013-08-14 18:02:46 +02:00
2013-08-14 18:02:46 +02:00
2013-08-14 18:02:46 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-14 18:02:46 +02:00
2013-08-14 18:02:46 +02:00
2013-08-12 12:20:22 +02:00
2013-08-13 15:07:44 +02:00
2013-07-21 22:04:20 -07:00
2012-01-15 16:05:43 +01:00