From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12553 invoked by alias); 22 Nov 2006 15:25:55 -0000 Received: (qmail 12502 invoked by uid 22791); 22 Nov 2006 15:25:53 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Wed, 22 Nov 2006 15:25:47 +0000 Received: from drow by nevyn.them.org with local (Exim 4.63) (envelope-from ) id 1Gmtyr-0000xv-Rs for gdb-patches@sourceware.org; Wed, 22 Nov 2006 10:25:45 -0500 Date: Wed, 22 Nov 2006 15:25:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sourceware.org Subject: [ob] Fix gdb.stabs/weird.exp Message-ID: <20061122152545.GA3679@nevyn.them.org> Mail-Followup-To: gdb-patches@sourceware.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.13 (2006-08-11) 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: 2006-11/txt/msg00252.txt.bz2 send_gdb needs \n at the end; gdb_test_multiple, like gdb_test, doesn't. The extra GDB prompt can cause random test failures. I should commit this to the branch too. I'll do that after I check it out. -- Daniel Jacobowitz CodeSourcery 2006-11-22 Daniel Jacobowitz * gdb.stabs/weird.exp (print_weird_var): Don't send extra \n. Index: gdb.stabs/weird.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.stabs/weird.exp,v retrieving revision 1.11 diff -u -p -r1.11 weird.exp --- gdb.stabs/weird.exp 9 Nov 2006 19:31:14 -0000 1.11 +++ gdb.stabs/weird.exp 22 Nov 2006 15:23:25 -0000 @@ -1,4 +1,4 @@ -# Copyright 1997, 1998, 1999, 2001, 2003, 2004 +# Copyright 1997, 1998, 1999, 2001, 2003, 2004, 2006 # Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify @@ -228,7 +228,7 @@ proc print_weird_var { var } { # Make sure that the variable gets printed out correctly, without # any sort of warning message. - gdb_test_multiple "print $var\n" "variable $var printed property" { + gdb_test_multiple "print $var" "variable $var printed property" { -re "^print $var\r*\n.\[0-9\]* = 42.*$gdb_prompt $" { pass "variable $var printed properly" }