summaryrefslogtreecommitdiff
path: root/lib/igt_core.h
diff options
context:
space:
mode:
authorMatt Roper <matthew.d.roper@intel.com>2016-05-26 16:02:05 -0700
committerMarius Vlad <marius.c.vlad@intel.com>2016-05-27 12:40:30 +0300
commit303b380d728bc870c399ba46525854d323f894e7 (patch)
tree35c0fbe79d01647b6892a6dd1b182d6ea19bf82c /lib/igt_core.h
parent04b8f0e025d92b7b8f08a14c22ebe0686b9ba5ea (diff)
igt_core: Search "." as final fallback for igt_fopen_data()
Some validation teams seem to run tests out of source directories that have been nfs mounted or rsync'd to different locations on the target machine. This causes the igt_srcdir that the tests were built with to be invalid on the machine the tests get run on. Add the current directory as a final fallback for data file searches. Reference: https://bugs.freedesktop.org/show_bug.cgi?id=92248 Cc: Humberto Israel Perez Rodriguez <humberto.i.perez.rodriguez@intel.com> Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Signed-off-by: Marius Vlad <marius.c.vlad@intel.com>
Diffstat (limited to 'lib/igt_core.h')
-rw-r--r--lib/igt_core.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/igt_core.h b/lib/igt_core.h
index 1b62371a..59952331 100644
--- a/lib/igt_core.h
+++ b/lib/igt_core.h
@@ -842,8 +842,8 @@ FILE *__igt_fopen_data(const char* igt_srcdir, const char* igt_datadir,
* igt_fopen_data:
* @filename: filename to open.
*
- * Open a datafile for test, first try from installation directory
- * then from build directory.
+ * Open a datafile for test, first try from installation directory,
+ * then from build directory, and finally from current directory.
*/
#define igt_fopen_data(filename) \
__igt_fopen_data(IGT_SRCDIR, IGT_DATADIR, filename)