summaryrefslogtreecommitdiff
path: root/tests/cl/program/program-tester.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cl/program/program-tester.c')
-rw-r--r--tests/cl/program/program-tester.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/cl/program/program-tester.c b/tests/cl/program/program-tester.c
index f70497b08..e47fb5aac 100644
--- a/tests/cl/program/program-tester.c
+++ b/tests/cl/program/program-tester.c
@@ -31,10 +31,13 @@
#include <inttypes.h>
#include <math.h>
#include <regex.h>
-#include <libgen.h>
#include "piglit-framework-cl-program.h"
+#ifdef HAVE_LIBGEN_H
+#include <libgen.h>
+#endif
+
/* Regexes */
/*
@@ -983,7 +986,7 @@ get_test_arg_value(struct test_arg* test_arg, const char* value, size_t length)
size_t i; // index in array
size_t c; // component in element
size_t ra; // offset from the beginning of array
- size_t rb; // offset from the beginning of bufffer
+ size_t rb; // offset from the beginning of buffer
int64_t* int_array = NULL;
uint64_t* uint_array = NULL;
@@ -2180,7 +2183,7 @@ test_kernel(const struct piglit_cl_program_test_config* config,
return PIGLIT_SKIP;
}
- /* Create or use apropriate kernel */
+ /* Create or use appropriate kernel */
if(test.kernel_name == NULL) {
kernel_name = config->kernel_name;
kernel = env->kernel;