[Intel-gfx] [PATCH igt] igt: Add basic framework for GVT-g testing

Wang, Zhi A zhi.a.wang at intel.com
Tue Jun 21 12:28:26 UTC 2016


Ha, I see. Additional signal handler to call the exit handlers. :P

> -----Original Message-----
> From: Chris Wilson [mailto:chris at chris-wilson.co.uk]
> Sent: Tuesday, June 21, 2016 3:22 PM
> To: Wang, Zhi A <zhi.a.wang at intel.com>
> Cc: intel-gfx at lists.freedesktop.org
> Subject: Re: [PATCH igt] igt: Add basic framework for GVT-g testing
> 
> On Tue, Jun 21, 2016 at 12:17:48PM +0000, Wang, Zhi A wrote:
> > To me, atexit is not reliable. As if something wrong happened during the test
> and an unexpected signal was received, the prog would be aborted. atexit()
> would not work on that case. Better do failsafe work in parent process and run
> the test case in child process I think.
> 
> Welcome to igt. atexit here handles signals, but we don't yet have universal
> setup/cleanup. Just a wishlist.
> -Chris
> 
> --
> Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list