From patchwork Wed Dec 10 18:05:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kyrylo Tkachov X-Patchwork-Id: 419810 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 0CD0F1400E7 for ; Thu, 11 Dec 2014 05:05:29 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:cc:subject:content-type; q=dns; s=default; b=WaZgHGyacrpoV7glYxytq+Tr67H6FASPutvpAHpAZ96 wE5UhrPiKLFhrg20ALC00xTLD59cuvyjjX27AI0/I68q4ArLnTXk9cG3BEJ8GNRL oDpIgpNLkcqseDAO0a1yPwmJARajhFxP3L3ZZOqikbYinVQYZZP9KAQTlTmuzn7I = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:cc:subject:content-type; s=default; bh=LG3KAuEJ2lJ7JZUeynaSTpUG/k8=; b=oZEtEc8xja+v+P4Ec pbdCjM4/sW6tJCW73o/S8Tnzrwv8T/QHnXIuPf/dg3WDOnK9afgPM19+QtRjKMc+ Pntt7Kg2vg7cb2vQJPwaPsdIs1Ygin24AR5mRtY9+zWIVWZzbR/wmYupknRlrufI cKdMUiEKB9NdeAIVdjP+YrN4hU= Received: (qmail 12378 invoked by alias); 10 Dec 2014 18:05:22 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 12358 invoked by uid 89); 10 Dec 2014 18:05:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00, SPF_PASS autolearn=ham version=3.3.2 X-HELO: service87.mimecast.com Received: from service87.mimecast.com (HELO service87.mimecast.com) (91.220.42.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 10 Dec 2014 18:05:19 +0000 Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.140]) by service87.mimecast.com; Wed, 10 Dec 2014 18:05:16 +0000 Received: from [10.1.207.43] ([10.1.255.212]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 10 Dec 2014 18:05:16 +0000 Message-ID: <54888B5C.1000803@arm.com> Date: Wed, 10 Dec 2014 18:05:16 +0000 From: Kyrill Tkachov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: GCC Patches CC: "mikestump@comcast.net" , libstdc++@gcc.gnu.org Subject: [PATCH][libstdc++][testsuite][2/2] Mark tests that don't fit into memory as UNSUPPORTED X-MC-Unique: 114121018051606101 X-IsSubscribed: yes Hi all, Here is the second part that includes the new target-utils.exp in the libstdc++ testsuite and uses the check_unsupported_p procedure to mark tests that are too large for memory as unsupported. Ok? Thanks, Kyrill 2014-12-10 Kyrylo Tkachov * testsuite/lib/libstdc++.exp: Include target-utils.exp. (v3_target_compile): Check if test is unsupported. (v3_target_compile_as_c): Likewise. commit 13abe3bbb6deab3de44935dea6c5fd9d62509ae7 Author: Kyrylo Tkachov Date: Wed Dec 3 10:33:44 2014 +0000 [libstdc++][testsuite] Check for programs not fitting into tiny memory models diff --git a/libstdc++-v3/testsuite/lib/libstdc++.exp b/libstdc++-v3/testsuite/lib/libstdc++.exp index 3d9913b..56649bb 100644 --- a/libstdc++-v3/testsuite/lib/libstdc++.exp +++ b/libstdc++-v3/testsuite/lib/libstdc++.exp @@ -57,6 +57,7 @@ load_gcc_lib target-libpath.exp load_gcc_lib timeout.exp load_gcc_lib timeout-dg.exp load_gcc_lib wrapper.exp +load_gcc_lib target-utils.exp # Useful for debugging. Pass the name of a variable and the verbosity # threshold (number of -v's on the command line). @@ -455,6 +457,7 @@ proc v3_target_compile { source dest type options } { global cxxldflags global includes global STATIC_LIBCXXFLAGS + global tool if { [target_info needs_status_wrapper] != "" && [info exists gluefile] } { lappend options "libs=${gluefile}" @@ -483,7 +486,14 @@ proc v3_target_compile { source dest type options } { lappend options "compiler=$cxx_final" lappend options "timeout=[timeout_value]" - return [target_compile $source $dest $type $options] + set comp_output [target_compile $source $dest $type $options] + set unsupported_message [${tool}_check_unsupported_p $comp_output] + + if { $unsupported_message != "" } { + unsupported "$dest: $unsupported_message" + return "" + } + return $comp_output } @@ -498,6 +508,7 @@ proc v3_target_compile_as_c { source dest type options } { global cc global cxxflags global STATIC_LIBCXXFLAGS + global tool if { [target_info needs_status_wrapper] != "" && [info exists gluefile] } { lappend options "libs=${gluefile}" @@ -551,7 +562,14 @@ proc v3_target_compile_as_c { source dest type options } { lappend options "compiler=$cc_final" lappend options "timeout=[timeout_value]" - return [target_compile $source $dest $type $options] + set comp_output [target_compile $source $dest $type $options] + set unsupported_message [${tool}_check_unsupported_p $comp_output] + + if { $unsupported_message != "" } { + unsupported "$dest: $unsupported_message" + return "" + } + return $comp_output } # Build the support objects linked in with the libstdc++ tests. In