| Message ID | 6f16a2fd-4aad-4071-b710-642b9c2576e1@suse.com |
|---|---|
| State | New |
| Headers |
Return-Path: <binutils-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9F0DA4BCA420 for <patchwork@sourceware.org>; Thu, 4 Dec 2025 14:04:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9F0DA4BCA420 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=suse.com header.i=@suse.com header.a=rsa-sha256 header.s=google header.b=By6pB3Ke X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) by sourceware.org (Postfix) with ESMTPS id E89404BC89AD for <binutils@sourceware.org>; Thu, 4 Dec 2025 14:02:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E89404BC89AD Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E89404BC89AD Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=209.85.128.41 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1764856969; cv=none; b=XtNHN1qKxDTf/kBfHX3l+tS9zETgDH9oCGLTZPnwJjx63+zn1DOCjjQvRfkgM5tnmYyI02AlpG4SrorSJFfg20gDZ7379GsVmlPDFzJj5EYsrkQZzzxDIPk27SrZA13S59FWBFfavFViBfETL/RFT7MWOM5ovtVVM3aUvyWf2j4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1764856969; c=relaxed/simple; bh=evMyt1wJvpGEyf1onqEj42Z3FeqN8W/Dt2wQdJp2Xow=; h=DKIM-Signature:Message-ID:Date:MIME-Version:To:From:Subject; b=exmqSIr7Ry+d4FpBFju4OE85+ezGxR2cxE2J6tMT552vDCN0SvPr2UZ7kGTIv12khwKncUsnGK/RzCV9NEPjw9C6qnTWpf4pN49+uLMknERs5dexVYg3p2o+82f8/uGROc0Z0SdY4ePvrmcfru+tYrsmTvDlaHvFtlSkjZ9ZUw8= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E89404BC89AD Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-4779a637712so7218185e9.1 for <binutils@sourceware.org>; Thu, 04 Dec 2025 06:02:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1764856968; x=1765461768; darn=sourceware.org; h=content-transfer-encoding:autocrypt:subject:from:cc:to :content-language:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=iNbOPzsDhjARUkv3xv763jKoL/uO8XZ3GPIY9h7poos=; b=By6pB3KexP9RY8Bp8zPF8JcxLyDKpIiyMleEVI8AqGvXKkvysEAhphRl72PfOJMcvm Eokn9x8kMeJcjDBquV3wp38CXgnnY83aeZuzYvS7Mhm+DOYACqqpziEYsNzmr45Xu/Z0 UPpTioiDqtQmgEaQ24xNCeoazkN6Qb2qAOgheQetjTI4Viafwvb9qNsPoy4htAun4QlN 4kfzdZExdcnWWKaxm/hdPifgT4xRf3dmmRFOFIrqWKVKhLZ4TeilvMLFzj7WRXzZpFRF yVZMAEc5Jn4qac6bOxLorSRBoosuO9BCVbya8INFG8vvyq4THbaV4iVIojjafsolIAb5 cY/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764856968; x=1765461768; h=content-transfer-encoding:autocrypt:subject:from:cc:to :content-language:user-agent:mime-version:date:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=iNbOPzsDhjARUkv3xv763jKo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source: AGHT+IHLyFYMlwNgzuiL9PUaGJ1lTENh/Fn7N14JzMMRD70XslZzxlu3cA2h2lDGQfvksy9xouYfgA== X-Received: by 2002:a05:600c:154e:b0:477:9cdb:e337 with SMTP id 5b1f17b1804b1-4792aedde78mr66042695e9.7.1764856967845; Thu, 04 Dec 2025 06:02:47 -0800 (PST) Received: from [10.156.60.236] (ip-037-024-206-209.um08.pools.vodafone-ip.de. [37.24.206.209]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-42f7d222478sm3355958f8f.20.2025.12.04.06.02.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 Dec 2025 06:02:47 -0800 (PST) Message-ID: <6f16a2fd-4aad-4071-b710-642b9c2576e1@suse.com> Date: Thu, 4 Dec 2025 15:02:45 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: Binutils <binutils@sourceware.org> Cc: "H.J. Lu" <hjl.tools@gmail.com>, Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> From: Jan Beulich <jbeulich@suse.com> Subject: [PATCH] x86: replace XFAILs in "GOTX default" tests Autocrypt: addr=jbeulich@suse.com; keydata= xsDiBFk3nEQRBADAEaSw6zC/EJkiwGPXbWtPxl2xCdSoeepS07jW8UgcHNurfHvUzogEq5xk hu507c3BarVjyWCJOylMNR98Yd8VqD9UfmX0Hb8/BrA+Hl6/DB/eqGptrf4BSRwcZQM32aZK 7Pj2XbGWIUrZrd70x1eAP9QE3P79Y2oLrsCgbZJfEwCgvz9JjGmQqQkRiTVzlZVCJYcyGGsD /0tbFCzD2h20ahe8rC1gbb3K3qk+LpBtvjBu1RY9drYk0NymiGbJWZgab6t1jM7sk2vuf0Py O9Hf9XBmK0uE9IgMaiCpc32XV9oASz6UJebwkX+zF2jG5I1BfnO9g7KlotcA/v5ClMjgo6Gl MDY4HxoSRu3i1cqqSDtVlt+AOVBJBACrZcnHAUSuCXBPy0jOlBhxPqRWv6ND4c9PH1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d+0ZnMQi+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3018.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2, RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED, SPF_HELO_NONE, SPF_PASS, TXREP, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list <binutils.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/binutils>, <mailto:binutils-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/binutils/> List-Post: <mailto:binutils@sourceware.org> List-Help: <mailto:binutils-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/binutils>, <mailto:binutils-request@sourceware.org?subject=subscribe> Errors-To: binutils-bounces~patchwork=sourceware.org@sourceware.org |
| Series |
x86: replace XFAILs in "GOTX default" tests
|
|
Commit Message
Jan Beulich
Dec. 4, 2025, 2:02 p.m. UTC
The use of XFAIL was wrong here. XFAIL marks tests which in principle should work, but where making them work requires extra effort.
Comments
Hi Jan, > The use of XFAIL was wrong here. XFAIL marks tests which in principle > should work, but where making them work requires extra effort. > > --- a/gas/testsuite/gas/i386/gotx-default.d > +++ b/gas/testsuite/gas/i386/gotx-default.d > @@ -1,6 +1,6 @@ > #source: gotx.s > #objdump: -dwr > -#xfail: *-*-solaris* > +#skip: *-*-solaris* > > .*: +file format .* > > --- a/gas/testsuite/gas/i386/no-gotx-default.d > +++ b/gas/testsuite/gas/i386/no-gotx-default.d > @@ -1,7 +1,6 @@ > #source: gotx.s > #objdump: -dwr > -#xfail: *-*-* > -#noxfail: *-*-solaris* > +#noskip: *-*-solaris* > > .*: +file format .* this is wrong: the tests are intended to verify that the -mrelax-relocations defaut remains as desired (off on Solaris, on elsewhere). With xfail's, any change results in an XPASS, while with skip's the change goes unnoticed because the tests are never run. Rainer
On 04.12.2025 16:43, Rainer Orth wrote: > Hi Jan, > >> The use of XFAIL was wrong here. XFAIL marks tests which in principle >> should work, but where making them work requires extra effort. >> >> --- a/gas/testsuite/gas/i386/gotx-default.d >> +++ b/gas/testsuite/gas/i386/gotx-default.d >> @@ -1,6 +1,6 @@ >> #source: gotx.s >> #objdump: -dwr >> -#xfail: *-*-solaris* >> +#skip: *-*-solaris* >> >> .*: +file format .* >> >> --- a/gas/testsuite/gas/i386/no-gotx-default.d >> +++ b/gas/testsuite/gas/i386/no-gotx-default.d >> @@ -1,7 +1,6 @@ >> #source: gotx.s >> #objdump: -dwr >> -#xfail: *-*-* >> -#noxfail: *-*-solaris* >> +#noskip: *-*-solaris* >> >> .*: +file format .* > > this is wrong: the tests are intended to verify that the > -mrelax-relocations defaut remains as desired (off on Solaris, on > elsewhere). With xfail's, any change results in an XPASS, while with > skip's the change goes unnoticed because the tests are never run. But then XFAIL is still wrong to use. Since the same file is assembled twice (as two independent test cases), a change in default would still be notice by the non-skipped testcase failing. Jan
Hi Jan, > On 04.12.2025 16:43, Rainer Orth wrote: >> Hi Jan, >> >>> The use of XFAIL was wrong here. XFAIL marks tests which in principle >>> should work, but where making them work requires extra effort. >>> >>> --- a/gas/testsuite/gas/i386/gotx-default.d >>> +++ b/gas/testsuite/gas/i386/gotx-default.d >>> @@ -1,6 +1,6 @@ >>> #source: gotx.s >>> #objdump: -dwr >>> -#xfail: *-*-solaris* >>> +#skip: *-*-solaris* >>> >>> .*: +file format .* >>> >>> --- a/gas/testsuite/gas/i386/no-gotx-default.d >>> +++ b/gas/testsuite/gas/i386/no-gotx-default.d >>> @@ -1,7 +1,6 @@ >>> #source: gotx.s >>> #objdump: -dwr >>> -#xfail: *-*-* >>> -#noxfail: *-*-solaris* >>> +#noskip: *-*-solaris* >>> >>> .*: +file format .* >> >> this is wrong: the tests are intended to verify that the >> -mrelax-relocations defaut remains as desired (off on Solaris, on >> elsewhere). With xfail's, any change results in an XPASS, while with >> skip's the change goes unnoticed because the tests are never run. > > But then XFAIL is still wrong to use. Since the same file is assembled twice > (as two independent test cases), a change in default would still be notice by > the non-skipped testcase failing. While I understand your desire to avoid running tests unnecessarily, I'm wary about skipping tests for a couple of reasons: * The original POSIX 1001.3 spec didn't SKIP for a reason: the intent was that the same set of tests should be run everywhere so test results could be compared without problems: every test would have a result, no exceptions. * I'm well aware that this ship has long sailed, though, in particular in GCC and Binutils where whole groups of tests are skipped if they cannot be run. * However, skipping them can lead to undesirable consequences. One particular bad example in recent times has been LLVM where the tests for the builtins part of compiler-rt were accidentally not run any longer without anyone noticing at all. Once I'd reported the issue, it took a year and a half to finally address this (and the patch is still not in, I believe). * Another possible issue is restricting tests to a particular set of targets without proper analysis (like restricting them to Linux although they'd run perfectly fine elsewhere). This has the unfortunate consequence that one either looses PASSing results that would confirm the feature works. Alternatively, when there are issues with some feature on a skipped target, you won't get notified that something is wrong. Since it took me some time to get the original version of the tests right, I've tested this patch in a variety of configurations: amd64 is Solaris/amd64, x86_64 is Linux/x86_64. invert means the -mrelax-relocations default was swapped in tc-i386.c: Linux off, Solaris on: gotx-default.d no-gotx-default.d amd64 x86_64 amd64 x86_64 original tests XFAIL PASS PASS XFAIL original and invert XPASS FAIL FAIL XPASS with patch SKIP PASS PASS SKIP with patch and invert SKIP FAIL FAIL SKIP Long story short: the patch is good to go. Rainer
--- a/gas/testsuite/gas/i386/gotx-default.d +++ b/gas/testsuite/gas/i386/gotx-default.d @@ -1,6 +1,6 @@ #source: gotx.s #objdump: -dwr -#xfail: *-*-solaris* +#skip: *-*-solaris* .*: +file format .* --- a/gas/testsuite/gas/i386/no-gotx-default.d +++ b/gas/testsuite/gas/i386/no-gotx-default.d @@ -1,7 +1,6 @@ #source: gotx.s #objdump: -dwr -#xfail: *-*-* -#noxfail: *-*-solaris* +#noskip: *-*-solaris* .*: +file format .*