diff options
author | Thomas Wood <thomas.wood@intel.com> | 2015-04-13 12:09:48 +0100 |
---|---|---|
committer | Thomas Wood <thomas.wood@intel.com> | 2015-04-14 17:44:35 +0100 |
commit | 90dadcd0da63d70155bb4c5a40c80a4f5c3e821c (patch) | |
tree | efffed548fa4fed0726234a1601380b7aeb51df0 /tests/testdisplay.c | |
parent | 8b3082a40e9a17fcd411aabc5c24c2e2ada5c13a (diff) |
lib: use a critical warning when unable to open a data file
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Diffstat (limited to 'tests/testdisplay.c')
-rw-r--r-- | tests/testdisplay.c | 5 |
1 files changed, 1 insertions, 4 deletions
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); |