From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26623 invoked by alias); 2 Nov 2009 15:55:52 -0000 Received: (qmail 26610 invoked by uid 22791); 2 Nov 2009 15:55:51 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 02 Nov 2009 15:55:47 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id E9BA010E9F; Mon, 2 Nov 2009 15:55:45 +0000 (GMT) Received: from caradoc.them.org (209.195.188.212.nauticom.net [209.195.188.212]) by nan.false.org (Postfix) with ESMTP id CAF0310E94; Mon, 2 Nov 2009 15:55:45 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1N4zFx-0003tL-1f; Mon, 02 Nov 2009 10:55:45 -0500 Date: Mon, 02 Nov 2009 15:55:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sourceware.org Cc: Keith Seitz Subject: [commit] Fix up return values in ctti.exp Message-ID: <20091102155545.GA14328@caradoc.them.org> Mail-Followup-To: gdb-patches@sourceware.org, Keith Seitz MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) 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: 2009-11/txt/msg00025.txt.bz2 This test is bit-rotten because it is disabled for GCC. It still doesn't pass with GCC, so I left it disabled, but I hope that Keith's branch will resolve this. Meanwhile, while trying it with local patches for RealView compiler support, I discovered that the exp file expects some functions to return -126 when their return type is "unsigned char". It should be 130 instead. Checked in. -- Daniel Jacobowitz CodeSourcery 2009-11-02 Daniel Jacobowitz * gdb.cp/ctti.exp: Correct return values for unsigned char functions. --- gdb/testsuite/gdb.cp/ctti.exp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) Index: gdb-mainline/gdb/testsuite/gdb.cp/ctti.exp =================================================================== --- gdb-mainline.orig/gdb/testsuite/gdb.cp/ctti.exp 2009-01-02 21:58:04.000000000 -0800 +++ gdb-mainline/gdb/testsuite/gdb.cp/ctti.exp 2009-10-31 07:02:05.000000000 -0700 @@ -112,7 +112,7 @@ gdb_test_multiple "print add(2.25 } gdb_test_multiple "print add('A','A')" "print add('A','A')" { - -re "\\$\[0-9\]+ = -126 .*\r\n$gdb_prompt $" { + -re "\\$\[0-9\]+ = 130 .*\r\n$gdb_prompt $" { pass "print add('A','A')" } -re "No symbol \"add\" in current context.\r\n$gdb_prompt $" { @@ -142,7 +142,7 @@ gdb_test_multiple "print add2(2.2 } gdb_test_multiple "print add2('A','A')" "print add2('A','A')" { - -re "\\$\[0-9]+ = -126 .*$gdb_prompt $" { + -re "\\$\[0-9]+ = 130 .*$gdb_prompt $" { pass "print add2('A','A')" } -re "No symbol \"add2\" in current context.\r\n$gdb_prompt $" { @@ -172,7 +172,7 @@ gdb_test_multiple "print add3(2.2 } gdb_test_multiple "print add3('A','A')" "print add3('A','A')" { - -re "\\$\[0-9]+ = -126 .*$gdb_prompt $" { + -re "\\$\[0-9]+ = 130 .*$gdb_prompt $" { pass "print add3('A','A')" } -re "No symbol \"add3\" in current context.\r\n$gdb_prompt $" { @@ -202,7 +202,7 @@ gdb_test_multiple "print add4(2.2 } gdb_test_multiple "print add4('A','A')" "print add4('A','A')" { - -re "\\$\[0-9]+ = -126 .*$gdb_prompt $" { + -re "\\$\[0-9]+ = 130 .*$gdb_prompt $" { pass "print add4('A','A')" } -re "No symbol \"add4\" in current context.\r\n$gdb_prompt $" {