From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1698) id E75613858D28; Sun, 21 Apr 2024 13:03:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E75613858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713704635; bh=O5G3UqAK9dQoE8VRLBwYUbs92dWMXNJoorSi4z649YE=; h=From:To:Subject:Date:From; b=mo3ib1zvoPFPNdkb0awNTxbaaZAxvaV//RhM0ZLsCWJxgaeYLG00fu6VFXixonopu K8z33p1ZOLg77CeeH3MQrJISeIDwuto1f1Yjj6IEmIBR0TI1HFhpKZINd4FWKSdVfe 6S8Hrkcu2ceDqgSYvmHLF3EbLFqc892wM3xTjQ/Y= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Iain D Sandoe To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-10375] testsuite, Darwin: Use the IOKit framework in framework-1.c [PR114049]. X-Act-Checkin: gcc X-Git-Author: Iain Sandoe X-Git-Refname: refs/heads/releases/gcc-12 X-Git-Oldrev: 63842c1dd7f48ed8b8284455c05ea5dfccfcd42b X-Git-Newrev: 4c8d37badaa42e85218eb9b89aef3e4f6cf4486e Message-Id: <20240421130355.E75613858D28@sourceware.org> Date: Sun, 21 Apr 2024 13:03:55 +0000 (GMT) List-Id: https://gcc.gnu.org/g:4c8d37badaa42e85218eb9b89aef3e4f6cf4486e commit r12-10375-g4c8d37badaa42e85218eb9b89aef3e4f6cf4486e Author: Iain Sandoe Date: Mon Mar 18 10:06:44 2024 +0000 testsuite, Darwin: Use the IOKit framework in framework-1.c [PR114049]. The intent of the test is to show that we find a framework that is installed in /System/Library/Frameworks when the user has added a '-F' option. The trick is to choose some header that is present for all the Darwin versions we support and that does not contain any content we cannot parse. We had been using the Kernel framework for this, but recent SDK versions have revealed that this is not suitable. Replacing with a use of IOKit. PR target/114049 gcc/testsuite/ChangeLog: * gcc.dg/framework-1.c: Use an IOKit header instead of a Kernel one. Signed-off-by: Iain Sandoe (cherry picked from commit 4adb1a5839e7a3310a127c1776f1f95d7edaa6ff) Diff: --- gcc/testsuite/gcc.dg/framework-1.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.dg/framework-1.c b/gcc/testsuite/gcc.dg/framework-1.c index de4adc39868..fdec129a8fb 100644 --- a/gcc/testsuite/gcc.dg/framework-1.c +++ b/gcc/testsuite/gcc.dg/framework-1.c @@ -1,4 +1,10 @@ /* { dg-do compile { target *-*-darwin* } } */ /* { dg-options "-F." } */ -#include +/* The intent of the test is to show that we find a framework that + is installed in /System/Library/Frameworks when the user has added + a '-F' option. The trick is to choose some header that is present + for all the Darwin versions we support and that does not contain any + content we cannot parse. */ + +#include