tests/kms_flip: exit handler needs a fixture

Since it can fail.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=70332
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter 2013-10-11 19:58:43 +02:00
parent ce5becbb61
commit 9f3794f5fd

View File

@ -1388,8 +1388,10 @@ static void get_timestamp_format(void)
static void kms_flip_exit_handler(int sig)
{
if (last_connector)
set_connector_dpms(last_connector, DRM_MODE_DPMS_ON);
igt_fixture {
if (last_connector)
set_connector_dpms(last_connector, DRM_MODE_DPMS_ON);
}
}
int main(int argc, char **argv)