From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22925 invoked by alias); 21 Jan 2011 11:56:39 -0000 Received: (qmail 22916 invoked by uid 22791); 21 Jan 2011 11:56:38 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mtagate2.uk.ibm.com (HELO mtagate2.uk.ibm.com) (194.196.100.162) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 21 Jan 2011 11:56:22 +0000 Received: from d06nrmr1707.portsmouth.uk.ibm.com (d06nrmr1707.portsmouth.uk.ibm.com [9.149.39.225]) by mtagate2.uk.ibm.com (8.13.1/8.13.1) with ESMTP id p0LBuJlR004632 for ; Fri, 21 Jan 2011 11:56:19 GMT Received: from d06av09.portsmouth.uk.ibm.com (d06av09.portsmouth.uk.ibm.com [9.149.37.250]) by d06nrmr1707.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p0LBuMlO1376358 for ; Fri, 21 Jan 2011 11:56:22 GMT Received: from d06av09.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av09.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p0LBuJgQ003497 for ; Fri, 21 Jan 2011 04:56:19 -0700 Received: from leonard.localnet (ICON-9-164-160-175.megacenter.de.ibm.com [9.164.160.175]) by d06av09.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p0LBuIZb003484 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 21 Jan 2011 04:56:18 -0700 From: Ken Werner To: gdb-patches@sourceware.org Subject: [patch] OpenCL testsuite fix Date: Fri, 21 Jan 2011 12:42:00 -0000 User-Agent: KMail/1.13.5 (Linux/2.6.35-24-generic-pae; KDE/4.5.1; i686; ; ) MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_iRXONzoC5wG/77u" Message-Id: <201101211256.18045.ken@linux.vnet.ibm.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-01/txt/msg00434.txt.bz2 --Boundary-00=_iRXONzoC5wG/77u Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-length: 293 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 --Boundary-00=_iRXONzoC5wG/77u Content-Type: text/x-patch; charset="UTF-8"; name="opencl-testsuite.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="opencl-testsuite.patch" Content-length: 979 gdb/testsuite/ChangeLog 2011-01-21 Ken Werner * 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] } --Boundary-00=_iRXONzoC5wG/77u--