Fixes make check in that case.
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
$(top_builddir)/src/util/libmesautil.la \
$(GALLIUM_COMMON_LIB_DEPS)
r300_compiler_tests_CPPFLAGS = \
+ -DTEST_PATH=\"$(top_srcdir)/src/gallium/drivers/r300/compiler/tests\" \
-I$(top_srcdir)/src/gallium/drivers/r300/compiler
r300_compiler_tests_SOURCES = $(COMPILER_TESTS_SOURCES)
unsigned i = 0;
memset(line, 0, sizeof(line));
- snprintf(path, MAX_PATH_LENGTH, "compiler/tests/%s", filename);
+ snprintf(path, MAX_PATH_LENGTH, TEST_PATH "/%s", filename);
file = fopen(path, "r");
if (!file) {
return 0;