get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/2215458/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2215458,
    "url": "http://patchwork.ozlabs.org/api/patches/2215458/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260324164153.991098-1-torbjorn.svensson@foss.st.com/",
    "project": {
        "id": 17,
        "url": "http://patchwork.ozlabs.org/api/projects/17/?format=api",
        "name": "GNU Compiler Collection",
        "link_name": "gcc",
        "list_id": "gcc-patches.gcc.gnu.org",
        "list_email": "gcc-patches@gcc.gnu.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260324164153.991098-1-torbjorn.svensson@foss.st.com>",
    "list_archive_url": null,
    "date": "2026-03-24T16:41:44",
    "name": "testsuite: only include some plugin tests when testing in build tree",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "02d329fc93baf4a725dd40a638c6b21a1f2d903d",
    "submitter": {
        "id": 84848,
        "url": "http://patchwork.ozlabs.org/api/people/84848/?format=api",
        "name": "Torbjörn SVENSSON",
        "email": "torbjorn.svensson@foss.st.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20260324164153.991098-1-torbjorn.svensson@foss.st.com/mbox/",
    "series": [
        {
            "id": 497315,
            "url": "http://patchwork.ozlabs.org/api/series/497315/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=497315",
            "date": "2026-03-24T16:41:44",
            "name": "testsuite: only include some plugin tests when testing in build tree",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/497315/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2215458/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2215458/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "gcc-patches@gcc.gnu.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@legolas.ozlabs.org",
            "gcc-patches@gcc.gnu.org"
        ],
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=foss.st.com header.i=@foss.st.com header.a=rsa-sha256\n header.s=selector2 header.b=j+IxAwuT;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=2620:52:6:3111::32; helo=vm01.sourceware.org;\n envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org;\n receiver=patchwork.ozlabs.org)",
            "sourceware.org;\n\tdkim=pass (2048-bit key,\n unprotected) header.d=foss.st.com header.i=@foss.st.com header.a=rsa-sha256\n header.s=selector2 header.b=j+IxAwuT",
            "sourceware.org;\n dmarc=pass (p=none dis=none) header.from=foss.st.com",
            "sourceware.org; spf=pass smtp.mailfrom=foss.st.com",
            "server2.sourceware.org;\n arc=pass smtp.remote-ip=52.101.70.40"
        ],
        "Received": [
            "from vm01.sourceware.org (vm01.sourceware.org\n [IPv6:2620:52:6:3111::32])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fgG6q25JYz1y1g\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 25 Mar 2026 03:42:43 +1100 (AEDT)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id A4B634BB5884\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 24 Mar 2026 16:42:39 +0000 (GMT)",
            "from AS8PR04CU009.outbound.protection.outlook.com\n (mail-westeuropeazon11011040.outbound.protection.outlook.com [52.101.70.40])\n by sourceware.org (Postfix) with ESMTPS id ABA044BAD14A\n for <gcc-patches@gcc.gnu.org>; Tue, 24 Mar 2026 16:42:09 +0000 (GMT)",
            "from DUZPR01CA0004.eurprd01.prod.exchangelabs.com\n (2603:10a6:10:3c3::20) by GVUPR10MB9880.EURPRD10.PROD.OUTLOOK.COM\n (2603:10a6:150:347::19) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9723.31; Tue, 24 Mar\n 2026 16:42:06 +0000",
            "from DU2PEPF00028CFD.eurprd03.prod.outlook.com\n (2603:10a6:10:3c3:cafe::d7) by DUZPR01CA0004.outlook.office365.com\n (2603:10a6:10:3c3::20) with Microsoft SMTP Server (version=TLS1_3,\n cipher=TLS_AES_256_GCM_SHA384) id 15.20.9723.31 via Frontend Transport; Tue,\n 24 Mar 2026 16:42:04 +0000",
            "from smtpO365.st.com (164.130.1.59) by\n DU2PEPF00028CFD.mail.protection.outlook.com (10.167.242.181) with Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.9723.19 via Frontend Transport; Tue, 24 Mar 2026 16:42:05 +0000",
            "from STKDAG1NODE2.st.com (10.75.128.133) by smtpo365.st.com\n (10.250.44.71) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.29; Tue, 24 Mar\n 2026 17:44:55 +0100",
            "from jkgcxl0012.jkg.st.com (10.74.22.122) by STKDAG1NODE2.st.com\n (10.75.128.133) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.29; Tue, 24 Mar\n 2026 17:42:04 +0100"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org A4B634BB5884",
            "OpenDKIM Filter v2.11.0 sourceware.org ABA044BAD14A"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org ABA044BAD14A",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org ABA044BAD14A",
        "ARC-Seal": [
            "i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1774370529; cv=pass;\n b=ryUAEzwffeMGJbSh01I0nDj7Ezrk90geZXl6NYMbxBYiK3HI+A2jsEsgyIMLK5UaDPlsguF2O3Y1WOig1GXg6oZUCtk7/aiY2LvMKIFLZwg6vHTgDfj8UIIhzZy98kscanQkF2qgoT7IL5q6JfIgneQDAnis2k09PK5MT+tmm6c=",
            "i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;\n b=rVMMQ5w87jWsLKVK9+1U1yxWtHb9/EIiSQzTvVl9zRlcTicw9M7gpTgsQeJMIC0pxHnWJdNYFAOZJHR4n1O6EY0JHoQ1ixRlDGa1WiHiagsf4QpxugpzZV89j+h5Biay842ZIh6sAk9hnGBGbU9aOiWrtEhMK0UfFpRcDogF1NEXFMvmxVPTf8svepdZPc971HGs+lgCcf2lkVcsfIN6mTyL6ZlciBOO0kRFkQ2QtxkNuSN5HKrmrra9uVKrrwl4X2rBI46H6wS4eCx0V2uM1APNGF9LvX4Z0/bbzXMi04qn8yaH+WUQB69ef4wlySZ3jzCQx8kzGPgFPLRibE6uLw=="
        ],
        "ARC-Message-Signature": [
            "i=2; a=rsa-sha256; d=sourceware.org; s=key;\n t=1774370529; c=relaxed/simple;\n bh=2YO8q9HOM+YXchIbGrqkbeix6WV1xNEhy8moJqk5Cgc=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=gUiwet+WYWbslxrtSCGSWSj/YImdwRorvLfGvyWTF8wIMCIhD17GvZQEv27TGeYqC/jBIpDMyU42tGZEgru8oxMtUnVuHknRxO3SZQ0MJanfWbCfZ8eS0Zen2bcIa389fZPDmqS2kbznBAFNvSVKnKewWgYacA8GAkAmIMEdMeI=",
            "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector10001;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;\n bh=i2nmuOfKShg4AaVx7mfYBqoNMQEe8giW9JrqT7uk/Nk=;\n b=iGQ7Ag2DaC7HOfpKO9tUbDbE0oQCy3yP3RwOTSfuY7TrXXd3jNA+fRomxkSIhjnrLWhRMjgLzzHG75wttqIzE3DOujln2j3jSOnTrFaN4J1PbtkFsXS1hz4VJ967mpdegHbrOk0wHTvhQBHJrzpwAipU6FQ8daVrb/5gMg51HxJ2WvGWl+pvkkETktQsb3sBcg8pB12rBTsEhmE59kh3gvl5cDlkjX1v9zgaixFYbnHF1zhoHrljn1s8hwBHJutovFzWxO6ReM0TviyR6qp8eAM2Vi+rntGhAY2x+Wu3HDj2b8bMBGbLrwcENrmnQ7vC1z7nhKYkRUIJmYhofjGmaQ=="
        ],
        "ARC-Authentication-Results": [
            "i=2; server2.sourceware.org",
            "i=1; mx.microsoft.com 1; spf=fail (sender ip is\n 164.130.1.59) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=foss.st.com;\n dmarc=fail (p=none sp=none pct=100) action=none header.from=foss.st.com;\n dkim=none (message not signed); arc=none (0)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com;\n s=selector2;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=i2nmuOfKShg4AaVx7mfYBqoNMQEe8giW9JrqT7uk/Nk=;\n b=j+IxAwuTgx/HcZ+8cKl2mcH/1rA1M7L2BBDWcoW2LuHozJtyrn0iwZOp8cqT33G5R33nQ5OsXu5280loWzgRRbgqFBVekC4JwpzHN/ka1x0+Zs1ntZh8aOxO9LwTZ6PCeRq2ZlqTN6BRl7g3FYcUpx7YsVY4Qq/sHurr74M8JBRCakTYw4NfGB0fdGw3CwIRBkB/7SeYLCbxx5J4Y1kF71lwtgvLrAvI07zUjCJLErQPD5DEls5AakytbS1R0N+PhzlkoAdvbfDdun1YZlhsZMsoH4IoCjb1JgjdYHtXfHy8f4t+oP1h+BFM0OpNOpuN+/JNwichUuOwKsYKXsXp/Q==",
        "X-MS-Exchange-Authentication-Results": "spf=fail (sender IP is 164.130.1.59)\n smtp.mailfrom=foss.st.com; dkim=none (message not signed)\n header.d=none;dmarc=fail action=none header.from=foss.st.com;",
        "Received-SPF": "Fail (protection.outlook.com: domain of foss.st.com does not\n designate 164.130.1.59 as permitted sender) receiver=protection.outlook.com;\n client-ip=164.130.1.59; helo=smtpO365.st.com;",
        "From": "=?utf-8?q?Torbj=C3=B6rn_SVENSSON?= <torbjorn.svensson@foss.st.com>",
        "To": "<gcc-patches@gcc.gnu.org>",
        "CC": "<rguenther@suse.de>,\n =?utf-8?q?Torbj=C3=B6rn_SVENSSON?= <torbjorn.svensson@foss.st.com>",
        "Subject": "[PATCH] testsuite: only include some plugin tests when testing in\n build tree",
        "Date": "Tue, 24 Mar 2026 17:41:44 +0100",
        "Message-ID": "<20260324164153.991098-1-torbjorn.svensson@foss.st.com>",
        "X-Mailer": "git-send-email 2.43.0",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"UTF-8\"",
        "Content-Transfer-Encoding": "8bit",
        "X-Originating-IP": "[10.74.22.122]",
        "X-ClientProxiedBy": "STKCAS1NODE1.st.com (10.75.128.134) To STKDAG1NODE2.st.com\n (10.75.128.133)",
        "X-EOPAttributedMessage": "0",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-TrafficTypeDiagnostic": "DU2PEPF00028CFD:EE_|GVUPR10MB9880:EE_",
        "X-MS-Office365-Filtering-Correlation-Id": "f55079e8-facf-4660-9526-08de89c44899",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-MS-Exchange-AntiSpam-Relay": "0",
        "X-Microsoft-Antispam": "BCL:0;\n ARA:13230040|82310400026|1800799024|376014|42112799006|36860700016|13003099007|56012099003|18002099003;",
        "X-Microsoft-Antispam-Message-Info": "\n ORR8pgHaHsU0C13uI+KeE7AHCkIgJkxfsozF1ftpWTm2/CKkdNy50NgjQs2oNE6MxwRHQoAq1OsMzlt9XudEqEzHlKPX9Tf5Lu1QouA02+HTt8VGkUqtsbdoaMhgh437K12WyPsYw2gFPeNCEkc3CBSlB7tX1P+/ufAY/RRwY90vRz3VI8zYmLyWgRWtVmz5neR1yUbkq0VaMGkYIic/iztqJ6iZBz2Bxfwi865Sjac3NvgYtlYFt87Jlf6M5ZfRVUAs1udiB2hnrShIdnfdB39/Jbpho8e8IKpDWbJoQOxo4TLbij80vGCM/ueoDmGDrVheKoBYkppKcVBH9klMF14yQnbTSJyHkxMzk20C2F2lHHdr/5TZhIu4VkG6FAkEVo7a3wDmln8VKGtPAOi7r+1yfAphPgd7U93bEIoGrjEOvgGGwrkNSVvgsp78X4BWOGENOSX9lLgrewz2Mg9bkCi0lzIBmONVRMekpvVPsI9gWxXaMUlXLedoqB0t82m/C6k6dIkcUIk4ewM+mexBmevGRlnPQJ4BkmDRc4xka7gmIWIbgZYsP4O+3dq5V1OnDClI8LgqThaeBAgrHmx/OaAa8kUHojtJsAX31UoVHJJENiseLLa0kz9AuGWHm5Q8I/rcNt+sNOLwj+XN9hplueW+yYDerXOF/AQnbKmKPCIYj321AlCrKbkKz0s17MZfcrL+2fkmplc1zGArAlc8/+TgdF6NUv+qvPrL71yqZQQ=",
        "X-Forefront-Antispam-Report": "CIP:164.130.1.59; CTRY:IT; LANG:en; SCL:1; SRV:;\n IPV:CAL; SFV:NSPM; H:smtpO365.st.com; PTR:InfoDomainNonexistent; CAT:NONE;\n SFS:(13230040)(82310400026)(1800799024)(376014)(42112799006)(36860700016)(13003099007)(56012099003)(18002099003);\n DIR:OUT; SFP:1101;",
        "X-MS-Exchange-AntiSpam-MessageData-ChunkCount": "1",
        "X-MS-Exchange-AntiSpam-MessageData-0": "\n pT6i8y77bi1wHhKia7XkBg+rOmaTg3E2hWltL2edVTJahvCp3BZBrlmmAxjbxSB16SlyZgf9mp5ZFBE3RqEfLGxZ9BQ72UArxn5XN1TEPsbOrBwDadHbumxm8o6bMidzlAW5FcLM3/LflIuRRu9vxrI8LaVPy5R8B6Yo+QudlRow55A1PRit16mxa78TeuBr2MbyLackuf4mS3xK9VPtCSpgaT30XwkPXHmRE3CERqzA/X34uWWY5VBUXa7kedwqqgwqLwzAdEOeycSVXlmoi6CxzL+gAlv4zHZAwmMHQ7Np4uSYN945rfifoEJp3pbJZxGiky6vRF/I+avJuCiVGWHRuc6KPD2XvUgui7j/kyxfwbhCLwJPKpgEqwJWCGBhx1j2nAs6JP61N5KcgsNgZiEp6SPSbcSrvBDIah8hYbuKMLm/o19X3ktG0eBVBJe4",
        "X-OriginatorOrg": "foss.st.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "24 Mar 2026 16:42:05.6765 (UTC)",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n f55079e8-facf-4660-9526-08de89c44899",
        "X-MS-Exchange-CrossTenant-Id": "75e027c9-20d5-47d5-b82f-77d7cd041e8f",
        "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp": "\n TenantId=75e027c9-20d5-47d5-b82f-77d7cd041e8f; Ip=[164.130.1.59];\n Helo=[smtpO365.st.com]",
        "X-MS-Exchange-CrossTenant-AuthSource": "\n DU2PEPF00028CFD.eurprd03.prod.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "GVUPR10MB9880",
        "X-BeenThere": "gcc-patches@gcc.gnu.org",
        "X-Mailman-Version": "2.1.30",
        "Precedence": "list",
        "List-Id": "Gcc-patches mailing list <gcc-patches.gcc.gnu.org>",
        "List-Unsubscribe": "<https://gcc.gnu.org/mailman/options/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe>",
        "List-Archive": "<https://gcc.gnu.org/pipermail/gcc-patches/>",
        "List-Post": "<mailto:gcc-patches@gcc.gnu.org>",
        "List-Help": "<mailto:gcc-patches-request@gcc.gnu.org?subject=help>",
        "List-Subscribe": "<https://gcc.gnu.org/mailman/listinfo/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe>",
        "Errors-To": "gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org"
    },
    "content": "Ok for trunk?\n\n--\n\nAs progress_notifications_plugin.cc requires topics/pass-events.h, but\nthe header file is not included in the header files to install, the test\ncase does not work when doing out of build tree testing.\n\ngcc/testsuite/ChangeLog:\n\n\t* gcc.dg/plugin/plugin.exp: Only include\n\tprogress_notifications_plugin.cc when testing in build tree.\n\nSigned-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>\n---\n gcc/testsuite/gcc.dg/plugin/plugin.exp | 9 ++++++++-\n 1 file changed, 8 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/gcc/testsuite/gcc.dg/plugin/plugin.exp b/gcc/testsuite/gcc.dg/plugin/plugin.exp\nindex deef8e8570c..994bfedd9ac 100644\n--- a/gcc/testsuite/gcc.dg/plugin/plugin.exp\n+++ b/gcc/testsuite/gcc.dg/plugin/plugin.exp\n@@ -200,9 +200,16 @@ set plugin_test_list [list \\\n \t  cpython-plugin-test-PyList_Append.c \\\n \t  cpython-plugin-test-PyList_New.c \\\n \t  cpython-plugin-test-PyLong_FromLong.c } \\\n-    { progress_notifications_plugin.cc } \\\n ]\n \n+\n+global TESTING_IN_BUILD_TREE\n+\n+if { [info exists TESTING_IN_BUILD_TREE] } {\n+    lappend plugin_test_list \\\n+\t{ progress_notifications_plugin.cc } \\\n+}\n+\n foreach plugin_test $plugin_test_list {\n     # Replace each source file with its full-path name\n     for {set i 0} {$i < [llength $plugin_test]} {incr i} {\n",
    "prefixes": []
}