tests/kms_cursor_crc: Combine data_t and test_data_t
authorMatt Roper <matthew.d.roper@intel.com>
Mon, 30 Jun 2014 23:44:29 +0000 (16:44 -0700)
committerDamien Lespiau <damien.lespiau@intel.com>
Fri, 4 Jul 2014 11:04:23 +0000 (12:04 +0100)
commit07087ada293b18823ca10762bc7e28740bb0e6bf
tree6d9089e48f5a027496a689cf888a5d53c1dad2da
parent075d9eafdb4c1c64099d738a012fe3e063f08fee
tests/kms_cursor_crc: Combine data_t and test_data_t

If a subtest fails, cleanup_crtc() never gets called and then the
test_data_t structure for the test is lost, including the CRC file
descriptor that we never got a chance to release; this causes all
subsequent tests to fail with -EBUSY at igt_pipe_crc_new().

The split between permanent data_t and temporary test_data_t doesn't
seem to serve a purpose, so just combine the fields from both into
data_t.  This will prevent us from losing the CRC filedescriptor so that
we can properly close and reopen it after a failed test.

Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
tests/kms_cursor_crc.c