From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17156 invoked by alias); 7 Mar 2005 20:08:23 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 16571 invoked from network); 7 Mar 2005 20:08:15 -0000 Received: from unknown (HELO e33.co.us.ibm.com) (32.97.110.131) by sourceware.org with SMTP; 7 Mar 2005 20:08:15 -0000 Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com [9.17.195.11]) by e33.co.us.ibm.com (8.12.10/8.12.9) with ESMTP id j27K8ETE067326 for ; Mon, 7 Mar 2005 15:08:14 -0500 Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by westrelay02.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id j27K8EL1170738 for ; Mon, 7 Mar 2005 13:08:14 -0700 Received: from d03av02.boulder.ibm.com (loopback [127.0.0.1]) by d03av02.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id j27K8Dv0018485 for ; Mon, 7 Mar 2005 13:08:13 -0700 Received: from austin.ibm.com (netmail2.austin.ibm.com [9.41.248.176]) by d03av02.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id j27K8Dab018475 for ; Mon, 7 Mar 2005 13:08:13 -0700 Received: from lazy.austin.ibm.com (lazy.austin.ibm.com [9.53.94.97]) by austin.ibm.com (8.12.10/8.12.10) with ESMTP id j27K8Dfx034848 for ; Mon, 7 Mar 2005 14:08:13 -0600 Date: Mon, 07 Mar 2005 20:08:00 -0000 From: Manoj Iyer X-X-Sender: manjo@lazy To: gdb-patches@sources.redhat.com Subject: [PATCH] gdb.base/float.exp gdb.base/commands.exp Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2005-03/txt/msg00086.txt.bz2 Here is a patch that fixes testcase problems with float.exp and commands.exp that causes the tests to fail on PowerPC. 2005-03-07 Manoj Iyer * commands.exp: Change hardcoded value to regular expression. * float.exp: Add powerpc to the list of targets checked. --------- float.exp ------------------- diff -Naurp ./old/src/gdb/testsuite/gdb.base/float.exp ./new/src/gdb/testsuite/gdb.base/float.exp --- ./old/src/gdb/testsuite/gdb.base/float.exp 2005-03-07 13:19:16.000000000 -0600 +++ ./new/src/gdb/testsuite/gdb.base/float.exp 2005-03-07 13:28:33.000000000 -0600 @@ -65,6 +65,8 @@ if { [istarget "alpha*-*-*"] } then { gdb_test "info float" "fp0.*fp1.*fp7.*" "info float" } elseif [istarget "mips*-*-*"] then { gdb_test "info float" "f0:.*flt:.*dbl:.*" "info float" +} elseif [istarget "powerpc*-*-*"] then { + gdb_test "info float" "f0.*f1.*f31.*fpscr.*" "info float" } elseif [istarget "s390*-*-*"] then { gdb_test "info float" "fpc.*f0.*f1.*f15.*" "info float" } elseif [istarget "sh*-*"] then { -------------------------------------- -------------- commands.exp --------------- diff -Naurp ./old/src/gdb/testsuite/gdb.base/commands.exp ./new/src/gdb/testsuite/gdb.base/commands.exp --- ./old/src/gdb/testsuite/gdb.base/commands.exp 2005-03-07 13:19:16.000000000 -0600 +++ ./new/src/gdb/testsuite/gdb.base/commands.exp 2005-03-07 13:21:49.000000000 -0600 @@ -331,7 +331,7 @@ proc watchpoint_command_test {} { } send_gdb "continue\n" gdb_expect { - -re "Continuing.*\[Ww\]atchpoint $wp_id deleted because the program has left the block in.*which its expression is valid.*run.c:57.*$gdb_prompt $" { + -re "Continuing.*\[Ww\]atchpoint $wp_id deleted because the program has left the block in.*which its expression is valid.*run.c:(57|82).*$gdb_prompt $" { pass "continue with watch" } -re "$gdb_prompt $" {fail "continue with watch"} ----------------------------------------------------------------- Cheers ----- manjo +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Cogito ergo sum + +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++