Re: [PATCH i-g-t] lib/igt_core: Print stacktrace in initialization/fixture blocks.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Sep 20, 2016 at 11:20:38AM +0300, Marius Vlad wrote:
> Likely candidate for this behaviour is the igt_fixture block. Seen in the CI by
> running tests/kms_psr_sink_crc which is causing segfaults in the fixture block.
> 
> While at it fix some minor printing bugs.
> 
> Signed-off-by: Marius Vlad <marius.c.vlad@xxxxxxxxx>
> CC: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
> ---
> @@ -1740,7 +1740,7 @@ static void fatal_sig_handler(int sig)
>  			igt_assert_eq(write(STDERR_FILENO, ".\n", 2), 2);
>  		}
>  
> -		if (in_subtest && crash_signal(sig)) {
> +		if (crash_signal(sig)) {
>  			/* Linux standard to return exit code as 128 + signal */
>  			if (!failed_one)
>  				igt_exitcode = 128 + sig;
> @@ -1749,7 +1749,8 @@ static void fatal_sig_handler(int sig)
>  #ifdef HAVE_LIBUNWIND
>  			print_backtrace_sig_safe();
>  #endif
> -			exit_subtest("CRASH");
> +			if (in_subtest)
> +				exit_subtest("CRASH");

Makes sense, I think - as much as I know this part of igt at least!
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux