If a subtest fails, it'll leave the pipe CRC file open, which will
prevent subsequent subtests from opening the file. Make sure the file
is cloesed before trying to open it again.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
connector_set_mode(data, &connector, &connector.config.default_mode);
+ igt_pipe_crc_free(data->pipe_crc[test_data->crtc_idx]);
+ data->pipe_crc[test_data->crtc_idx] = NULL;
+
pipe_crc = create_crc(data, test_data->crtc_idx);
if (!pipe_crc) {
printf("auto crc not supported on this connector with crtc %i\n",
igt_subtest_name(), test_data.crtc_id, connector_id);
igt_pipe_crc_free(data->pipe_crc[test_data.crtc_idx]);
+ data->pipe_crc[test_data.crtc_idx] = NULL;
}
}