From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10390 invoked by alias); 13 Jan 2007 09:08:47 -0000 Received: (qmail 10369 invoked by uid 22791); 13 Jan 2007 09:08:45 -0000 X-Spam-Check-By: sourceware.org Received: from 195.22.55.53.adsl.nextra.cz (HELO host0.dyn.jankratochvil.net) (195.22.55.53) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 13 Jan 2007 09:08:41 +0000 Received: from host0.dyn.jankratochvil.net (localhost [127.0.0.1]) by host0.dyn.jankratochvil.net (8.13.8/8.13.8) with ESMTP id l0D98cf1026872 for ; Sat, 13 Jan 2007 10:08:38 +0100 Received: (from jkratoch@localhost) by host0.dyn.jankratochvil.net (8.13.8/8.13.8/Submit) id l0D98bKu026871 for gdb-patches@sourceware.org; Sat, 13 Jan 2007 10:08:37 +0100 Date: Sat, 13 Jan 2007 09:08:00 -0000 From: Jan Kratochvil To: gdb-patches@sourceware.org Subject: [PATCH] Fix `testrun.log' output of manual `testrun's Message-ID: <20070113090837.GA25646@host0.dyn.jankratochvil.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="qDbXVdCdHGoSgWSk" Content-Disposition: inline User-Agent: Mutt/1.4.2.2i 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: 2007-01/txt/msg00326.txt.bz2 --qDbXVdCdHGoSgWSk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 228 Hi, if you run by hand: cd gdb/testsuite; runtest gdb.base/complex.exp (any test using get_compiler_info()) "testrun.log" will get empty (except its header). This problem does not occur during `make check'. Regards, Jan --qDbXVdCdHGoSgWSk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline; filename="gdb-6.5-testsuite-log.patch" Content-length: 787 2007-01-13 Jan Kratochvil * lib/gdb.exp (get_compiler_info): Cope with nondefault output logs. diff -u -rupN gdb-6.5-ppc/gdb/testsuite/lib/gdb.exp gdb-6.5/gdb/testsuite/lib/gdb.exp --- gdb-6.5-ppc/gdb/testsuite/lib/gdb.exp 2007-01-12 14:33:26.000000000 -0500 +++ gdb-6.5/gdb/testsuite/lib/gdb.exp 2007-01-12 21:15:02.000000000 -0500 @@ -1351,9 +1351,10 @@ proc get_compiler_info {binfile args} { # Run $ifile through the right preprocessor. # Toggle gdb.log to keep the compiler output out of the log. + set log_old [log_file -info] log_file set cppout [ gdb_compile "${ifile}" "" preprocess [list "$args" quiet] ] - log_file -a "$outdir/$tool.log" + eval "log_file $log_old" # Eval the output. set unknown 0 --qDbXVdCdHGoSgWSk--