From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22578 invoked by alias); 18 Mar 2011 16:27:56 -0000 Received: (qmail 22388 invoked by uid 22791); 18 Mar 2011 16:27:54 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from fencepost.gnu.org (HELO fencepost.gnu.org) (140.186.70.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 18 Mar 2011 16:27:51 +0000 Received: from eggs.gnu.org ([140.186.70.92]:42697) by fencepost.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1Q0cWj-0006Ip-HG for gcc@gnu.org; Fri, 18 Mar 2011 12:27:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q0cWf-0001S8-6e for gcc@gnu.org; Fri, 18 Mar 2011 12:27:49 -0400 Received: from smtp-out.google.com ([74.125.121.67]:55074) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q0cWe-0001RV-Rq for gcc@gnu.org; Fri, 18 Mar 2011 12:27:45 -0400 Received: from kpbe19.cbf.corp.google.com (kpbe19.cbf.corp.google.com [172.25.105.83]) by smtp-out.google.com with ESMTP id p2IGRhkq022978 for ; Fri, 18 Mar 2011 09:27:43 -0700 Received: from vxd7 (vxd7.prod.google.com [10.241.33.199]) by kpbe19.cbf.corp.google.com with ESMTP id p2IGQtqG016117 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Fri, 18 Mar 2011 09:27:41 -0700 Received: by vxd7 with SMTP id 7so3671778vxd.6 for ; Fri, 18 Mar 2011 09:27:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.88.225 with SMTP id bj1mr1906589vdb.61.1300465661195; Fri, 18 Mar 2011 09:27:41 -0700 (PDT) Received: by 10.220.16.129 with HTTP; Fri, 18 Mar 2011 09:27:41 -0700 (PDT) In-Reply-To: References: Date: Fri, 18 Mar 2011 16:27:00 -0000 Message-ID: Subject: Re: Spurious libstdc++ testsuite failures because of truncated buffered output From: Diego Novillo To: Andreas Schwab Cc: gcc@gnu.org, libstdc++@gcc.gnu.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 74.125.121.67 X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2011-03/txt/msg00269.txt.bz2 On Fri, Mar 18, 2011 at 11:55, Andreas Schwab wrote: > Diego Novillo writes: > >> Is there a way to increase dejagnu's buffering? > > expect(1): > > =C2=A0 =C2=A0 =C2=A0 match_max [-d] [-i spawn_id] [size] > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 defines the size of the buffer = =C2=A0(in =C2=A0bytes) =C2=A0used =C2=A0internally =C2=A0by > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 expect. =C2=A0With no size argu= ment, the current size is returned. > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 With =C2=A0the -d flag, the def= ault size is set. =C2=A0(The initial default > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 is 2000.) =C2=A0With the -i fla= g, the size is set for the named =C2=A0spawn > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 id, otherwise it is set for the= current process. Thanks, but I don't think match_max affects this. It's the output from the compiler that is being truncated. I modified conformance.exp with a match_max value 10x the limit I need, but the failures are still there: Index: testsuite/libstdc++-dg/conformance.exp =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- testsuite/libstdc++-dg/conformance.exp (revision 171068) +++ testsuite/libstdc++-dg/conformance.exp (working copy) @@ -21,6 +21,8 @@ # Initialization. dg-init +match_max -d 10000000 + # Build the support objects. v3-build_support Running /libstdc++-v3/testsuite/libstdc++-dg/conformance.exp ... FAIL: decimal/mixed-mode_neg.cc (test for errors, line 196) FAIL: decimal/mixed-mode_neg.cc (test for errors, line 197) FAIL: decimal/mixed-mode_neg.cc (test for errors, line 198) FAIL: decimal/mixed-mode_neg.cc (test for errors, line 199) FAIL: decimal/mixed-mode_neg.cc (test for errors, line 200) FAIL: decimal/mixed-mode_neg.cc (test for errors, line 201) FAIL: decimal/mixed-mode_neg.cc (test for errors, line 202) FAIL: decimal/mixed-mode_neg.cc (test for errors, line 203) The output is clearly truncated, right before the first 'PASS' result, I se= e: [ ... ]/x86_64-unknown-linux-gnu/libstdc++-v3/include/decimal/decimal.h:83:= 3: note: std::decimal::decimal32& std::decimal::decimal32::operator/=3D(long int)^M /usr/local/google/hom <<<< TRUNCATED PASS: decimal/mixed-mode_neg.cc (test for errors, line 43) PASS: decimal/mixed-mode_neg.cc (test for errors, line 44) Diego.