public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [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

* Re: [patch] OpenCL testsuite fix
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Ulrich Weigand @ 2011-01-21 12:44 UTC (permalink / raw)
  To: Ken Werner; +Cc: gdb-patches

Ken Werner wrote:

> 	* lib/opencl.exp (skip_opencl_tests): Add missing compile_flags
> 	argument to the gdb_compile_opencl_hostapp call.

This is OK.

Thanks,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [patch] OpenCL testsuite fix
  2011-01-21 12:44 ` Ulrich Weigand
@ 2011-01-21 15:13   ` Ken Werner
  0 siblings, 0 replies; 3+ messages in thread
From: Ken Werner @ 2011-01-21 15:13 UTC (permalink / raw)
  To: Ulrich Weigand, gdb-patches

On Friday, January 21, 2011 1:41:49 pm Ulrich Weigand wrote:
> Ken Werner wrote:
> > 	* lib/opencl.exp (skip_opencl_tests): Add missing compile_flags
> > 	argument to the gdb_compile_opencl_hostapp call.
> 
> This is OK.

Patch applied:
http://sourceware.org/ml/gdb-cvs/2011-01/msg00146.html

Thanks
Ken

^ 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).