From patchwork Mon Oct 26 13:15:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 9379 Received: (qmail 113986 invoked by alias); 26 Oct 2015 13:16:02 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 113975 invoked by uid 89); 26 Oct 2015 13:16:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com To: GNU C Library From: Florian Weimer Subject: [PATCH] c++-types-check: Do not run this test if there is no C++ support Message-ID: <562E2784.5010306@redhat.com> Date: Mon, 26 Oct 2015 14:15:48 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 I'm not sure if there is a way to mark this test as UNSUPPORTED. With the attached patch, at least it is no longer reported as FAIL. Florian 2015-10-26 Florian Weimer * Makefile (c++-types-check.out): Change condition from CXX == no to CXX = "". (tests-special): Do not add c++-types-check.out. [CXX] (tests-special): Add c++-types-check.out. diff --git a/Makefile b/Makefile index b2dd771..e370770 100644 --- a/Makefile +++ b/Makefile @@ -250,11 +250,11 @@ mostlyclean: parent-mostlyclean tests-clean: @$(MAKE) subdir_testclean no_deps=t -tests-special += $(objpfx)c++-types-check.out $(objpfx)check-local-headers.out -ifneq ($(CXX),no) +tests-special += $(objpfx)check-local-headers.out +ifneq ($(CXX),) +tests-special += $(objpfx)c++-types-check.out vpath c++-types.data $(+sysdep_dirs) - $(objpfx)c++-types-check.out: c++-types.data scripts/check-c++-types.sh scripts/check-c++-types.sh $< $(CXX) $(filter-out -std=gnu99 $(+gccwarn-c),$(CFLAGS)) $(CPPFLAGS) > $@; \ $(evaluate-test)