* [patch] OpenCL testsuite fix
@ 2011-01-21 12:42 Ken Werner
2011-01-21 12:44 ` Ulrich Weigand
0 siblings, 1 reply; 3+ messages in thread
From: Ken Werner @ 2011-01-21 12:42 UTC (permalink / raw)
To: gdb-patches
[-- Attachment #1: Type: Text/Plain, Size: 293 bytes --]
Hi,
The attached patch adds the missing compile_flags argument to the
gdb_compile_opencl_hostapp call in the skip_opencl_tests procedure. This
prevents `make check` from printing error messages if there is no OpenCL
environment available (i.e. missing opencl.h).
Ok to apply?
Regards
Ken
[-- Attachment #2: opencl-testsuite.patch --]
[-- Type: text/x-patch, Size: 979 bytes --]
gdb/testsuite/ChangeLog
2011-01-21 Ken Werner <ken.werner@de.ibm.com>
* lib/opencl.exp (skip_opencl_tests): Add missing compile_flags
argument to the gdb_compile_opencl_hostapp call.
Index: gdb/testsuite/lib/opencl.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/lib/opencl.exp,v
retrieving revision 1.1
diff -p -u -r1.1 opencl.exp
--- gdb/testsuite/lib/opencl.exp 5 Nov 2010 14:31:30 -0000 1.1
+++ gdb/testsuite/lib/opencl.exp 21 Jan 2011 11:24:30 -0000
@@ -50,7 +50,7 @@ proc skip_opencl_tests {} {
verbose "$me: compiling OpenCL test app" 2
set compile_flags {debug nowarnings quiet}
- if { [gdb_compile_opencl_hostapp "${clprogram}" "${executable}" "" ] != "" } {
+ if { [gdb_compile_opencl_hostapp "${clprogram}" "${executable}" "${compile_flags}" ] != "" } {
verbose "$me: compiling OpenCL binary failed, returning 1" 2
return [set skip_opencl_tests_saved($board) 1]
}
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-01-21 14:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-21 12:42 [patch] OpenCL testsuite fix Ken Werner
2011-01-21 12:44 ` Ulrich Weigand
2011-01-21 15:13 ` Ken Werner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).