if (filter_test_id && filter_test_id != test_id)
return;
- printf(" Test id#%d CRTC count %d\n", test_id, crtc_count);
+ igt_info(" Test id#%d CRTC count %d\n", test_id, crtc_count);
for (i = 0; i < crtc_count; i++) {
get_crtc_config_str(&crtcs[i], str_buf[i], sizeof(str_buf[i]));
if (dry_run) {
for (i = 0; i < crtc_count; i++)
- printf(" %s\n", crtc_strs[i]);
+ igt_info(" %s\n", crtc_strs[i]);
return;
}
crtc = &crtcs[i];
- printf(" %s\n", crtc_strs[i]);
+ igt_info(" %s\n", crtc_strs[i]);
create_fb_for_crtc(crtc, &crtc->fb_info);
paint_fb(&crtc->fb_info, tconf->name, crtc_strs, crtc_count, i);
get_combinations(tconf->resources->count_crtcs, connector_count,
true, &crtc_combs);
- printf("Testing: %s %d connector combinations\n", tconf->name,
- connector_count);
+ igt_info("Testing: %s %d connector combinations\n", tconf->name,
+ connector_count);
for (i = 0; i < connector_combs.count; i++) {
int *connector_idxs;
int ret;
igt_skip_on_simulation();
- if (dry_run && filter_test_id) {
- fprintf(stderr, "only one of -d and -t is accepted\n");
- exit(1);
- }
+ igt_assert_f(!(dry_run && filter_test_id),
+ "only one of -d and -t is accepted\n");
igt_fixture {
drm_fd = drm_open_any();