mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 01:16:18 +00:00
testdisplay: Provide a full path when opening pngs
This way one doesn't have to be in tests/ for testsdisplay to be able to open pass.png. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
parent
5d99634913
commit
951b37e2d0
@ -194,7 +194,10 @@ CLEANFILES = $(EXTRA_PROGRAMS)
|
||||
|
||||
AM_CFLAGS = $(DRM_CFLAGS) $(CWARNFLAGS) \
|
||||
-I$(srcdir)/.. \
|
||||
-I$(srcdir)/../lib
|
||||
-I$(srcdir)/../lib \
|
||||
-DIGT_DATADIR=\""$(abs_srcdir)"\" \
|
||||
$(NULL)
|
||||
|
||||
LDADD = ../lib/libintel_tools.la $(PCIACCESS_LIBS) $(DRM_LIBS)
|
||||
|
||||
testdisplay_SOURCES = \
|
||||
|
@ -319,7 +319,7 @@ static void paint_output_info(struct connector *c, struct kmstest_fb *fb)
|
||||
}
|
||||
|
||||
if (qr_code)
|
||||
paint_image(cr, "./pass.png");
|
||||
paint_image(cr, IGT_DATADIR"/pass.png");
|
||||
|
||||
igt_assert(!cairo_status(cr));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user