get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2224018,
    "url": "http://patchwork.ozlabs.org/api/patches/2224018/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/ltp/patch/20260416-stream_refactoring-v2-3-8321b1ec6f68@suse.com/",
    "project": {
        "id": 59,
        "url": "http://patchwork.ozlabs.org/api/projects/59/?format=api",
        "name": "Linux Test Project development",
        "link_name": "ltp",
        "list_id": "ltp.lists.linux.it",
        "list_email": "ltp@lists.linux.it",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260416-stream_refactoring-v2-3-8321b1ec6f68@suse.com>",
    "list_archive_url": null,
    "date": "2026-04-16T14:33:37",
    "name": "[v2,3/7] lib: add TST_EXP_PASS_PTR_NULL() macro",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "637ee963ac75d89065fea2d2fc13cced2e720840",
    "submitter": {
        "id": 83220,
        "url": "http://patchwork.ozlabs.org/api/people/83220/?format=api",
        "name": "Andrea Cervesato",
        "email": "andrea.cervesato@suse.de"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/ltp/patch/20260416-stream_refactoring-v2-3-8321b1ec6f68@suse.com/mbox/",
    "series": [
        {
            "id": 500172,
            "url": "http://patchwork.ozlabs.org/api/series/500172/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/ltp/list/?series=500172",
            "date": "2026-04-16T14:33:35",
            "name": "Rewrite fs stream testing suite",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/500172/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2224018/comments/",
    "check": "warning",
    "checks": "http://patchwork.ozlabs.org/api/patches/2224018/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "ltp@lists.linux.it"
        ],
        "Delivered-To": [
            "patchwork-incoming@legolas.ozlabs.org",
            "ltp@picard.linux.it"
        ],
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256\n header.s=susede2_rsa header.b=vafkzwQ0;\n\tdkim=fail reason=\"signature verification failed\" header.d=suse.de\n header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519\n header.b=SKOy4PsV;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key)\n header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa\n header.b=vafkzwQ0;\n\tdkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=SKOy4PsV;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it\n (client-ip=2001:1418:10:5::2; helo=picard.linux.it;\n envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it;\n receiver=patchwork.ozlabs.org)",
            "smtp-out1.suse.de;\n\tnone"
        ],
        "Received": [
            "from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2])\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 4fxLBC347Nz1yG9\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 17 Apr 2026 00:34:27 +1000 (AEST)",
            "from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id EA6033E2EAB\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 16 Apr 2026 16:34:24 +0200 (CEST)",
            "from in-4.smtp.seeweb.it (in-4.smtp.seeweb.it [217.194.8.4])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature ECDSA (secp384r1))\n (No client certificate requested)\n by picard.linux.it (Postfix) with ESMTPS id 8D96A3E596E\n for <ltp@lists.linux.it>; Thu, 16 Apr 2026 16:33:45 +0200 (CEST)",
            "from smtp-out1.suse.de (smtp-out1.suse.de\n [IPv6:2a07:de40:b251:101:10:150:64:1])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by in-4.smtp.seeweb.it (Postfix) with ESMTPS id 0C40A10008FF\n for <ltp@lists.linux.it>; Thu, 16 Apr 2026 16:33:44 +0200 (CEST)",
            "from imap1.dmz-prg2.suse.org (unknown [10.150.64.97])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n (No client certificate requested)\n by smtp-out1.suse.de (Postfix) with ESMTPS id 296886A7FA;\n Thu, 16 Apr 2026 14:33:37 +0000 (UTC)",
            "from imap1.dmz-prg2.suse.org (localhost [127.0.0.1])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n (No client certificate requested)\n by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 05577593A6;\n Thu, 16 Apr 2026 14:33:36 +0000 (UTC)",
            "from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167])\n by imap1.dmz-prg2.suse.org with ESMTPSA id 2AS7OkDz4GniGQAAD6G6ig\n (envelope-from <andrea.cervesato@suse.de>); Thu, 16 Apr 2026 14:33:36 +0000"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_rsa;\n t=1776350017;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=16kAsu9EUZLxKVmIB3VPtFt6jqL8L4Rd1SNSSLs5vtk=;\n b=vafkzwQ0mqOyAMJR4gMwKDpqa9ISbDaS6wmXGPwD2Dzj5gkiaqqaIs5ep/0R3KPAsCBcoZ\n DbrxfcMO9x6XC6DyC7kfhnNKgVtbnqxKhQUHnh+oISLyvRwp3WEedKLHCGy2oi2a8hhKiK\n 1Xot5k6MFEIZ+HDBXROzOWMMiC3BENY=",
            "v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_ed25519; t=1776350017;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=16kAsu9EUZLxKVmIB3VPtFt6jqL8L4Rd1SNSSLs5vtk=;\n b=SKOy4PsVemK1rKgRXVUO1Ph4GkqKHsHGV3nN1cFV8L0hWAuq5sd0xL9JNRGFDY/M2vsyz6\n dO00HdaogzBBSSBQ==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_rsa;\n t=1776350017;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=16kAsu9EUZLxKVmIB3VPtFt6jqL8L4Rd1SNSSLs5vtk=;\n b=vafkzwQ0mqOyAMJR4gMwKDpqa9ISbDaS6wmXGPwD2Dzj5gkiaqqaIs5ep/0R3KPAsCBcoZ\n DbrxfcMO9x6XC6DyC7kfhnNKgVtbnqxKhQUHnh+oISLyvRwp3WEedKLHCGy2oi2a8hhKiK\n 1Xot5k6MFEIZ+HDBXROzOWMMiC3BENY=",
            "v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_ed25519; t=1776350017;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=16kAsu9EUZLxKVmIB3VPtFt6jqL8L4Rd1SNSSLs5vtk=;\n b=SKOy4PsVemK1rKgRXVUO1Ph4GkqKHsHGV3nN1cFV8L0hWAuq5sd0xL9JNRGFDY/M2vsyz6\n dO00HdaogzBBSSBQ=="
        ],
        "From": "Andrea Cervesato <andrea.cervesato@suse.de>",
        "Date": "Thu, 16 Apr 2026 16:33:37 +0200",
        "MIME-Version": "1.0",
        "Message-Id": "<20260416-stream_refactoring-v2-3-8321b1ec6f68@suse.com>",
        "References": "<20260416-stream_refactoring-v2-0-8321b1ec6f68@suse.com>",
        "In-Reply-To": "<20260416-stream_refactoring-v2-0-8321b1ec6f68@suse.com>",
        "To": "Linux Test Project <ltp@lists.linux.it>",
        "X-Mailer": "b4 0.14.2",
        "X-Developer-Signature": "v=1; a=ed25519-sha256; t=1776350016; l=1550;\n i=andrea.cervesato@suse.com; s=20251210; h=from:subject:message-id;\n bh=udda04Wb0av3ek5fWnh9bGE02Y4kwVIpOfy+wkyI3TU=;\n b=PSXWo/j/EHShlTMekrLmgWbQLSFfviVFIjQq06gdODW4KD2IqSEsRdmVmjyZYZJiiXVcTZubn\n WUUu2wtyjlhB7MywGXcanK5qaaPspz8flI9OU+HRJr86uwSU9gWMgZs",
        "X-Developer-Key": "i=andrea.cervesato@suse.com; a=ed25519;\n pk=zKY+6GCauOiuHNZ//d8PQ/UL4jFCTKbXrzXAOQSLevI=",
        "X-Spam-Score": "-4.30",
        "X-Spam-Level": "",
        "X-Spamd-Result": "default: False [-4.30 / 50.00]; BAYES_HAM(-3.00)[100.00%];\n NEURAL_HAM_LONG(-1.00)[-1.000];\n NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain];\n FUZZY_RATELIMITED(0.00)[rspamd.com];\n RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[];\n RCPT_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[];\n DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519];\n TO_DN_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+];\n FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[];\n RCVD_COUNT_TWO(0.00)[2];\n DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo, suse.com:mid,\n suse.com:email]",
        "X-Spam-Status": "No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID,\n DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS shortcircuit=no\n autolearn=disabled version=4.0.1",
        "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on in-4.smtp.seeweb.it",
        "X-Virus-Scanned": "clamav-milter 1.0.9 at in-4.smtp.seeweb.it",
        "X-Virus-Status": "Clean",
        "Subject": "[LTP] [PATCH v2 3/7] lib: add TST_EXP_PASS_PTR_NULL() macro",
        "X-BeenThere": "ltp@lists.linux.it",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "Linux Test Project <ltp.lists.linux.it>",
        "List-Unsubscribe": "<https://lists.linux.it/options/ltp>,\n <mailto:ltp-request@lists.linux.it?subject=unsubscribe>",
        "List-Archive": "<http://lists.linux.it/pipermail/ltp/>",
        "List-Post": "<mailto:ltp@lists.linux.it>",
        "List-Help": "<mailto:ltp-request@lists.linux.it?subject=help>",
        "List-Subscribe": "<https://lists.linux.it/listinfo/ltp>,\n <mailto:ltp-request@lists.linux.it?subject=subscribe>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it",
        "Sender": "\"ltp\" <ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>"
    },
    "content": "From: Andrea Cervesato <andrea.cervesato@suse.com>\n\nAdd a variant of TST_EXP_PASS_PTR_VOID() that checks the return\nvalue against NULL instead of (void *)-1. This is useful for libc\nfunctions such as fopen() that return NULL on failure, allowing\ntests to report TFAIL instead of TBROK when the call fails.\n\nSigned-off-by: Andrea Cervesato <andrea.cervesato@suse.com>\n---\n include/tst_test_macros.h | 15 ++++++++++++++-\n 1 file changed, 14 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/include/tst_test_macros.h b/include/tst_test_macros.h\nindex 3d2287753b0419c82b1a878e8779def99d4bb4ca..2cfbdb5869af5c871e7086236a17b3a76e34b5d3 100644\n--- a/include/tst_test_macros.h\n+++ b/include/tst_test_macros.h\n@@ -370,7 +370,20 @@ extern int TST_PASS;\n  * is converted to a string and used instead.\n  */\n #define TST_EXP_PASS_PTR_VOID(SCALL, ...)                                      \\\n-               TST_EXP_PASS_PTR_(SCALL, #SCALL, (void *)-1, ##__VA_ARGS__);\n+\tTST_EXP_PASS_PTR_(SCALL, #SCALL, (void *)-1, ##__VA_ARGS__);\n+\n+/**\n+ * TST_EXP_PASS_PTR_NULL() - Test call to return a non-NULL pointer.\n+ *\n+ * @SCALL: Tested call.\n+ * @...: A printf-like parameters.\n+ *\n+ * This macro works like TST_EXP_PASS_PTR_VOID() but checks the return\n+ * value against NULL instead of (void *)-1. Use this for libc functions\n+ * such as fopen() that return NULL on failure.\n+ */\n+#define TST_EXP_PASS_PTR_NULL(SCALL, ...)                                      \\\n+\tTST_EXP_PASS_PTR_(SCALL, #SCALL, NULL, ##__VA_ARGS__)\n \n /*\n  * Returns true if err is in the exp_err array.\n",
    "prefixes": [
        "v2",
        "3/7"
    ]
}