From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8045 invoked by alias); 12 Jan 2011 23:14:21 -0000 Received: (qmail 8036 invoked by uid 22791); 12 Jan 2011 23:14:20 -0000 X-SWARE-Spam-Status: No, hits=-4.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-outbound-2.vmware.com (HELO smtp-outbound-2.vmware.com) (65.115.85.73) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 12 Jan 2011 23:14:15 +0000 Received: from mailhost2.vmware.com (mailhost2.vmware.com [10.16.67.167]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id B1E2257006 for ; Wed, 12 Jan 2011 15:14:13 -0800 (PST) Received: from msnyder-server.eng.vmware.com (promd-2s-dhcp138.eng.vmware.com [10.20.124.138]) by mailhost2.vmware.com (Postfix) with ESMTP id A9ED58ECD4 for ; Wed, 12 Jan 2011 15:14:13 -0800 (PST) Message-ID: <4D2E35C5.60206@vmware.com> Date: Wed, 12 Jan 2011 23:14:00 -0000 From: Michael Snyder User-Agent: Thunderbird 2.0.0.24 (X11/20101201) MIME-Version: 1.0 To: "gdb@sourceware.org" Subject: Question re: testsuite, "isnative", "is_remote" etc. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-01/txt/msg00037.txt.bz2 What's the recommended way of skipping a test case if it shouldn't run remotely? I see a lot of tests that use "if not isnative", but that surely isn't right, since that test only compares the host and target board names. Then there is a test called is_remote, but that mostly does the same thing, except it also tests a board variable called "isremote", which is only true if you happen to remember to set it in your board file. I'm thinking that there should be some test that checks for "use_gdb_stub" or "gdb_protocol". But of course you have to set those in your board file too. What's the right answer? ;-/