summaryrefslogtreecommitdiff
path: root/tests/kms_render.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-08-13 12:35:58 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-08-13 15:07:44 +0200
commit83440953e50d1c46217ce9bdcd74aa9a4671913d (patch)
tree4e94f8444c479e4e59be2b760dba01d3aa561ed2 /tests/kms_render.c
parent2371c79bbd69f46c2849298fb7f216a5b9a21aa8 (diff)
tests: s/assert/igt_assert
Just a wholesale rollout for now, we can refine later on. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/kms_render.c')
-rw-r--r--tests/kms_render.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/tests/kms_render.c b/tests/kms_render.c
index 7b2197c0..953977aa 100644
--- a/tests/kms_render.c
+++ b/tests/kms_render.c
@@ -24,7 +24,6 @@
#include "config.h"
#endif
-#include <assert.h>
#include <cairo.h>
#include <errno.h>
#include <stdint.h>
@@ -78,16 +77,16 @@ static void gpu_blit(struct kmstest_fb *dst_fb, struct kmstest_fb *src_fb)
drm_intel_bo *src_bo;
int bpp;
- assert(dst_fb->drm_format == src_fb->drm_format);
- assert(src_fb->drm_format == DRM_FORMAT_RGB565 ||
+ igt_assert(dst_fb->drm_format == src_fb->drm_format);
+ igt_assert(src_fb->drm_format == DRM_FORMAT_RGB565 ||
drm_format_to_bpp(src_fb->drm_format) != 16);
bpp = drm_format_to_bpp(src_fb->drm_format);
dst_bo = gem_handle_to_libdrm_bo(bufmgr, drm_fd, "destination",
dst_fb->gem_handle);
- assert(dst_bo);
+ igt_assert(dst_bo);
src_bo = gem_handle_to_libdrm_bo(bufmgr, drm_fd, "source",
src_fb->gem_handle);
- assert(src_bo);
+ igt_assert(src_bo);
intel_blt_copy(batch,
src_bo, 0, 0, src_fb->width * bpp / 8,
@@ -114,12 +113,12 @@ static int test_format(const char *test_name,
ret = asprintf(&mode_format_str, "%s @ %dHz / %s",
mode->name, mode->vrefresh, kmstest_format_str(format));
- assert(ret > 0);
+ igt_assert(ret > 0);
ret = asprintf(&cconf_str, "pipe %s, encoder %s, connector %s",
kmstest_pipe_str(cconf->pipe),
kmstest_encoder_type_str(cconf->encoder->encoder_type),
kmstest_connector_type_str(cconf->connector->connector_type));
- assert(ret > 0);
+ igt_assert(ret > 0);
printf("Beginning test %s with %s on %s\n",
test_name, mode_format_str, cconf_str);
@@ -194,7 +193,7 @@ static int run_test(const char *test_name, enum test_flags flags)
int i;
resources = drmModeGetResources(drm_fd);
- assert(resources);
+ igt_assert(resources);
/* Find any connected displays */
for (i = 0; i < resources->count_connectors; i++) {