[Intel-gfx] [PATCH i-g-t 2/4] lib: Skip suspend/hibernate tests if the system doesn't support them

Daniel Vetter daniel at ffwll.ch
Thu Oct 22 16:05:47 PDT 2015


On Thu, Oct 22, 2015 at 10:35 PM,  <ville.syrjala at linux.intel.com> wrote:
> diff --git a/lib/igt_aux.c b/lib/igt_aux.c
> index 04ca25b..f3c76ae 100644
> --- a/lib/igt_aux.c
> +++ b/lib/igt_aux.c
> @@ -357,6 +357,9 @@ void igt_system_suspend_autoresume(void)
>          * seems to fare better. We need to investigate what's going on. */
>         igt_skip_on_simulation();
>
> +       /* skip if system doesn't support suspend-to-mem */
> +       igt_skip_on(system("rtcwake -n -s 30 -m mem") != 0);

For these systems we should instead test the "freeze" mode at least.
Or add a pile of new testcases for that one specifically, since we
currently have 0 test coverage. Should be a basic/BAT one I guess.
-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