From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11794 invoked by alias); 17 Jun 2011 01:10:05 -0000 Received: (qmail 11785 invoked by uid 22791); 17 Jun 2011 01:10:04 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 17 Jun 2011 01:09:50 +0000 Received: (qmail 11947 invoked from network); 17 Jun 2011 01:09:49 -0000 Received: from unknown (HELO ?192.168.1.5?) (janisjo@127.0.0.2) by mail.codesourcery.com with ESMTPA; 17 Jun 2011 01:09:49 -0000 Message-ID: <4DFAA9B9.1010100@codesourcery.com> Date: Fri, 17 Jun 2011 02:27:00 -0000 From: Janis Johnson User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10 MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org" Subject: [testsuite] scan-dump variants to use 'unresolved' for missing dump file Content-Type: multipart/mixed; boundary="------------050904070800050207020605" X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-06/txt/msg01318.txt.bz2 This is a multi-part message in MIME format. --------------050904070800050207020605 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-length: 431 Currently, scan-dump variants treat a missing dump file as a failure and append ": dump file does not exist" to the test message that would be used with pass or fail. This patch treats it as unresolved instead, using the same test message as for pass/fail and reporting the reason in the log file. Tested with dummy tests that use all of these procs for either pass, fail, or unresolved. OK for trunk, and later for 4.6? Janis --------------050904070800050207020605 Content-Type: text/plain; name="gcc-20110616-3" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="gcc-20110616-3" Content-length: 1919 2011-06-16 Janis Johnson * lib/scandump.exp (scan-dump, scan-dump-times, scan-dump-not, scan-dump-dem, scan-dump-dem-not): Treat a missing dump file as unresolved and report the reason to the log file. Index: lib/scandump.exp =================================================================== --- lib/scandump.exp (revision 175083) +++ lib/scandump.exp (working copy) @@ -55,7 +55,8 @@ set src [file tail [lindex $testcase 0]] set output_file "[glob -nocomplain $src.[lindex $args 2]]" if { $output_file == "" } { - fail "$testname: dump file does not exist" + verbose -log "$testcase: dump file does not exist" + unresolved "$testname" return } @@ -97,7 +98,8 @@ set src [file tail [lindex $testcase 0]] set output_file "[glob -nocomplain $src.[lindex $args 3]]" if { $output_file == "" } { - fail "$testname: dump file does not exist" + verbose -log "$testcase: dump file does not exist" + unresolved "$testname" return } @@ -139,7 +141,8 @@ set src [file tail [lindex $testcase 0]] set output_file "[glob -nocomplain $src.[lindex $args 2]]" if { $output_file == "" } { - fail "$testname: dump file does not exist" + verbose -log "$testcase: dump file does not exist" + unresolved "$testname" return } @@ -190,7 +193,8 @@ set src [file tail [lindex $testcase 0]] set output_file "[glob -nocomplain $src.[lindex $args 2]]" if { $output_file == "" } { - fail "$testname: dump file does not exist" + verbose -log "$testcase: dump file does not exist" + unresolved "$testname" return } @@ -241,7 +245,8 @@ set src [file tail [lindex $testcase 0]] set output_file "[glob -nocomplain $src.[lindex $args 2]]" if { $output_file == "" } { - fail "$testname: dump file does not exist" + verbose -log "$testcase: dump file does not exist" + unresolved "$testname" return } --------------050904070800050207020605--