From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by sourceware.org (Postfix) with ESMTPS id 494583858D3C for ; Tue, 21 Feb 2023 14:26:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 494583858D3C Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 8850034AD1 for ; Tue, 21 Feb 2023 14:26:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1676989588; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=B2jb/Lr4pOrkQQVKwbLFtZjWJaLIU1zb/SE/f6JniCo=; b=Fg7C0CKMitj7uMCatJra2qXpI1ttuBNnTNUBqRGGwiz4UPnZ2+igO+Kt8Zot1DsiND+5rO X1aZptrmD3EbKB9WCqVwkZdLWFtJhIjDLlPpDZmcA3bx9xJU1YDKO99wKXuAmchVIiAjj/ jBbHO2m1Ex2a0D+ldoarhobPJdCobOg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1676989588; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=B2jb/Lr4pOrkQQVKwbLFtZjWJaLIU1zb/SE/f6JniCo=; b=W3xcFcG5A0tPQEXpDk7u0DDT1FWN+TZqhFKlGZTfRNaVNiPpvJqp1CnwOTVDWPTwkadQrA 0A/6rhJcFpTECRBw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 7483613223 for ; Tue, 21 Feb 2023 14:26:28 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id Iu9BG5TU9GNfUAAAMHmgww (envelope-from ) for ; Tue, 21 Feb 2023 14:26:28 +0000 From: Tom de Vries To: gdb-patches@sourceware.org Subject: [pushed] [gdb/testsuite] Require compilation flags in two gdb.arch/aarch64 test-cases Date: Tue, 21 Feb 2023 15:26:41 +0100 Message-Id: <20230221142641.13882-1-tdevries@suse.de> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: With test-cases gdb.arch/aarch64-mte-core.exp and gdb.arch/aarch64-pauth.exp I run into compilation errors due to unsupported compilation flags. Fix this by requiring the compilation flags, such that I have instead: ... UNSUPPORTED: gdb.arch/aarch64-mte-core.exp: require failed: \ have_compile_flag -march=armv8.5-a+memtag UNSUPPORTED: gdb.arch/aarch64-pauth.exp: require failed: \ have_compile_flag -mbranch-protection=pac-ret+leaf ... Tested on aarch64-linux. --- gdb/testsuite/gdb.arch/aarch64-mte-core.exp | 2 ++ gdb/testsuite/gdb.arch/aarch64-pauth.exp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/gdb/testsuite/gdb.arch/aarch64-mte-core.exp b/gdb/testsuite/gdb.arch/aarch64-mte-core.exp index dde5df47b1a..6127ffb302b 100644 --- a/gdb/testsuite/gdb.arch/aarch64-mte-core.exp +++ b/gdb/testsuite/gdb.arch/aarch64-mte-core.exp @@ -166,6 +166,8 @@ proc test_mode { mode } { require is_aarch64_target +require {have_compile_flag -march=armv8.5-a+memtag} + # Run tests foreach_with_prefix mode {"sync" "async"} { test_mode $mode diff --git a/gdb/testsuite/gdb.arch/aarch64-pauth.exp b/gdb/testsuite/gdb.arch/aarch64-pauth.exp index d0dfaf96900..36d8e722072 100644 --- a/gdb/testsuite/gdb.arch/aarch64-pauth.exp +++ b/gdb/testsuite/gdb.arch/aarch64-pauth.exp @@ -19,6 +19,8 @@ require is_aarch64_target +require {have_compile_flag -mbranch-protection=pac-ret+leaf} + # Build program with address signing forced on. standard_testfile set compile_flags {debug} base-commit: 2ef339e38f51906a394105fe545058fec1f9bc4a -- 2.35.3