From patchwork Tue Jan 29 08:52:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 1032603 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-494888-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=CeBiTec.Uni-Bielefeld.DE Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="w5Uc95rF"; dkim-atps=neutral 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 43pgHJ0X8Tz9sDr for ; Tue, 29 Jan 2019 19:52:26 +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:from :to:cc:subject:date:message-id:mime-version:content-type; q=dns; s=default; b=A7Kqqoqah0JKvlcDetzN4pCzTaU14BpL1iQVG7eHyTcNemL35D Kk0Ro4XnZcuJbISEDd77oHioNVC0pvS5dWTyH3srMEGqHXivQIDu1DWE7BGWLlw7 j/RTB//seEjdP+h5T6UsnpM+DMepujM8BSuJQM9htASpejzirtL/j9FNo= 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:from :to:cc:subject:date:message-id:mime-version:content-type; s= default; bh=55P//SDTCSRL+71Nv93XinG/Zz4=; b=w5Uc95rFnR2tjmRWNMw7 acbU2HHvNbyCd3P/KgkkOsu8egxK8Jx7I3PvndPU3YFNuoYBjY4hvdG/z/Rrg/jW 6b9zu8/kLRUr0xeM9uxF1eAUpP3fpXho+0lz24E4dLhvTjV/gthXRqCv7PRsIgTl Uo74uzpROKmbxhdYjWHQ1aU= Received: (qmail 124146 invoked by alias); 29 Jan 2019 08:52:19 -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 123979 invoked by uid 89); 29 Jan 2019 08:52:19 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-20.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, KAM_SHORT autolearn=ham version=3.3.2 spammy=H*r:LMTP, university X-HELO: smtp.CeBiTec.Uni-Bielefeld.DE Received: from smtp.CeBiTec.Uni-Bielefeld.DE (HELO smtp.CeBiTec.Uni-Bielefeld.DE) (129.70.160.84) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 29 Jan 2019 08:52:16 +0000 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id B272ABBE; Tue, 29 Jan 2019 09:52:12 +0100 (CET) Received: from smtp.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (malfoy.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ifIgw+rThcJ8; Tue, 29 Jan 2019 09:52:10 +0100 (CET) Received: from manam.CeBiTec.Uni-Bielefeld.DE (p4FDDB9E7.dip0.t-ipconnect.de [79.221.185.231]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPSA id DB848BBD; Tue, 29 Jan 2019 09:52:09 +0100 (CET) From: Rainer Orth To: gcc-patches@gcc.gnu.org Cc: Iain Buclaw Subject: [testsuite] Mark gdc.dg/pr89042?.d as compile tests Date: Tue, 29 Jan 2019 09:52:08 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (usg-unix-v) MIME-Version: 1.0 X-IsSubscribed: yes I've seen the new gdc.dg/pr89042?.d tests FAIL in a parallel multilib bootstrap on i386-pc-solaris2.11: +FAIL: gdc.dg/pr89042a.d -O0 (test for excess errors) +UNRESOLVED: gdc.dg/pr89042a.d -O0 compilation failed to produce executable +FAIL: gdc.dg/pr89042a.d -O0 -frelease (test for excess errors) +UNRESOLVED: gdc.dg/pr89042a.d -O0 -frelease compilation failed to produce executable +FAIL: gdc.dg/pr89042a.d -O0 -frelease -g (test for excess errors) +UNRESOLVED: gdc.dg/pr89042a.d -O0 -frelease -g compilation failed to produce executable +FAIL: gdc.dg/pr89042a.d -O0 -g (test for excess errors) +UNRESOLVED: gdc.dg/pr89042a.d -O0 -g compilation failed to produce executable +FAIL: gdc.dg/pr89042a.d -O1 (test for excess errors) +UNRESOLVED: gdc.dg/pr89042a.d -O1 compilation failed to produce executable +FAIL: gdc.dg/pr89042a.d -O1 -frelease (test for excess errors) [...] +FAIL: gdc.dg/pr89042b.d -O0 (test for excess errors) +UNRESOLVED: gdc.dg/pr89042b.d -O0 compilation failed to produce executable +FAIL: gdc.dg/pr89042b.d -O0 -frelease (test for excess errors) [...] Undefined first referenced symbol in file main /usr/lib/amd64/crt1.o ld: fatal: symbol referencing errors collect2: error: ld returned 1 exit status compiler exited with status 1 FAIL: gdc.dg/pr89042a.d -O0 (test for excess errors) Although they are obviouly compile tests, an attempt is made to link them which fails. As an immediate fix, I've marked them as compile tests explicitly. However, the underlying problem is that the gdc testsuite drivers (gdc-test.exp in particular) don't save and restore dg-do-what-default as they should. So depending on what driver is run before in a parallel make check, it can happen that dg-do-what-default is set to link or run from a previous test. Tested on i386-pc-solaris2.11, installed on mainline. Rainer # HG changeset patch # Parent 4b1525dfaa492568a95a76642dff2640b0c188df Mark gdc.dg/pr89042?.d as compile tests diff --git a/gcc/testsuite/gdc.dg/pr89042a.d b/gcc/testsuite/gdc.dg/pr89042a.d --- a/gcc/testsuite/gdc.dg/pr89042a.d +++ b/gcc/testsuite/gdc.dg/pr89042a.d @@ -1,2 +1,3 @@ // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89042 +// { dg-do compile } enum void[] a = void; diff --git a/gcc/testsuite/gdc.dg/pr89042b.d b/gcc/testsuite/gdc.dg/pr89042b.d --- a/gcc/testsuite/gdc.dg/pr89042b.d +++ b/gcc/testsuite/gdc.dg/pr89042b.d @@ -1,2 +1,3 @@ // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89042 +// { dg-do compile } enum void[2] a = void;