From 90dadcd0da63d70155bb4c5a40c80a4f5c3e821c Mon Sep 17 00:00:00 2001 From: Thomas Wood Date: Mon, 13 Apr 2015 12:09:48 +0100 Subject: lib: use a critical warning when unable to open a data file Signed-off-by: Thomas Wood --- tests/testdisplay.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'tests/testdisplay.c') diff --git a/tests/testdisplay.c b/tests/testdisplay.c index 92ea08ca..58f56a37 100644 --- a/tests/testdisplay.c +++ b/tests/testdisplay.c @@ -262,11 +262,8 @@ static void paint_image(cairo_t *cr, const char *file) img_x = (width / 2) - (img_w / 2); fp = igt_fopen_data(file); - if (!fp) { - igt_warn("data file \'%s\' missing: %s\n", - file, strerror(errno)); + if (!fp) return; - } image = cairo_image_surface_create_from_png_stream(&stdio_read_func, (void*)fp); -- cgit v1.2.3