{"id":2224021,"url":"http://patchwork.ozlabs.org/api/covers/2224021/?format=json","web_url":"http://patchwork.ozlabs.org/project/ltp/cover/20260416-stream_refactoring-v2-0-8321b1ec6f68@suse.com/","project":{"id":59,"url":"http://patchwork.ozlabs.org/api/projects/59/?format=json","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-0-8321b1ec6f68@suse.com>","list_archive_url":null,"date":"2026-04-16T14:33:34","name":"[v2,0/7] Rewrite fs stream testing suite","submitter":{"id":83220,"url":"http://patchwork.ozlabs.org/api/people/83220/?format=json","name":"Andrea Cervesato","email":"andrea.cervesato@suse.de"},"mbox":"http://patchwork.ozlabs.org/project/ltp/cover/20260416-stream_refactoring-v2-0-8321b1ec6f68@suse.com/mbox/","series":[{"id":500172,"url":"http://patchwork.ozlabs.org/api/series/500172/?format=json","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/covers/2224021/comments/","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=YyNvG740;\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=rfjk18ze;\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=CG1scczu;\n\tdkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=eVoQiN/2;\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-out2.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)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fxLCM5x6Rz1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 17 Apr 2026 00:35:27 +1000 (AEST)","from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id A79173E4AD2\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 16 Apr 2026 16:35:25 +0200 (CEST)","from in-2.smtp.seeweb.it (in-2.smtp.seeweb.it [217.194.8.2])\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 E677B3E4ADE\n for <ltp@lists.linux.it>; Thu, 16 Apr 2026 16:33:50 +0200 (CEST)","from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131])\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-2.smtp.seeweb.it (Postfix) with ESMTPS id 0E1766008EE\n for <ltp@lists.linux.it>; Thu, 16 Apr 2026 16:33:49 +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-out2.suse.de (Postfix) with ESMTPS id 89C9C5BCF8;\n Thu, 16 Apr 2026 14:33:36 +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 60933593A3;\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 S9hvFUDz4GniGQAAD6G6ig\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 bh=JwXwv5R1awBUI2F/kfwo7NqKA8nNHjcVPkg95O9U1/o=;\n b=YyNvG740GfLryeq/+t5xzdbjeXv3kosZw5SFpntRid7wQ/dDNEYkuS7i/ywhCpA9fWdTx4\n ElQlt2L1ubRb8FN0sN/IDLvI6zKBP1YdssPxPjoT/KbABmhx6/xuDpeUkeeEWjq/AhiNrv\n h/aoJGFAba8wKLnsDEpqmIoawkRGPdg=","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 bh=JwXwv5R1awBUI2F/kfwo7NqKA8nNHjcVPkg95O9U1/o=;\n b=rfjk18ze4nq9+jGKBUr6na01x+jvC5Xl9eLS8qn4L+RQXjx2yIHfuHkH2rDNiuP6A1Idea\n MR15eIKCqCXKKZBw==","v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_rsa;\n t=1776350016;\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 bh=JwXwv5R1awBUI2F/kfwo7NqKA8nNHjcVPkg95O9U1/o=;\n b=CG1scczun48bf8uyghAF8daYyQZBTRgtJBPO8srq4Bq1LZP3d7KVdj7XJ0x0Eq+XISHOgD\n QhcQidUnlhm8pkwyG9GACxadHPdG89ZGJbC0Xg40ros+kzcEwKoeuGftixRbWu7K0hsFT2\n XNjpvSk7gAH2zoSS4NXwftOJT8ZuoPQ=","v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_ed25519; t=1776350016;\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 bh=JwXwv5R1awBUI2F/kfwo7NqKA8nNHjcVPkg95O9U1/o=;\n b=eVoQiN/2JC20R69mXltzAtB5uBwDE7vvcJa+5TZ85f3DGzsbsflFloyrYKwOXpNOnxkfya\n F4N1hDEr1OCqMrBg=="],"From":"Andrea Cervesato <andrea.cervesato@suse.de>","Date":"Thu, 16 Apr 2026 16:33:34 +0200","Message-Id":"<20260416-stream_refactoring-v2-0-8321b1ec6f68@suse.com>","MIME-Version":"1.0","X-B4-Tracking":"v=1; b=H4sIAD7z4GkC/22NQQ7CIBBFr9LMWgygxerKe5jGUJi2sygYphJN0\n 7uLTdy5fH/+f7MAYyJkuFQLJMzEFEMBvavAjTYMKMgXBi21kUpLwXNCO90T9tbNMVEYxLGrrcG\n zl9afoAwf5UivTXprC4/EpfnefmT1TX+6wz9dVkIK3aiuqXtjO6mv/GTcuzhBu67rB/EI1JmzA\n AAA","X-Change-ID":"20260120-stream_refactoring-4b5a6e9d0ad7","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=1962;\n i=andrea.cervesato@suse.com; s=20251210; h=from:subject:message-id;\n bh=PrOk5dk6uIUo6ZXnh56LLKAxB4aCke+1RgcwilfJCus=;\n b=WgMt60qexJ7PX2l+0EpJtCL7FpHgmePoiqyEeNlelnhpSgQB5IwdF4IkQJggMnz8eYxhd2zH0\n Vf7GUmaeGfuCcnm6b4Kp8UVrxWYmIqi+YN07tGKYrQsbWPzuvj2Vwqw","X-Developer-Key":"i=andrea.cervesato@suse.com; a=ed25519;\n pk=zKY+6GCauOiuHNZ//d8PQ/UL4jFCTKbXrzXAOQSLevI=","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 URIBL_BLOCKED(0.00)[imap1.dmz-prg2.suse.org:helo,suse.com:mid,suse.com:email];\n TO_DN_ALL(0.00)[]; FROM_HAS_DN(0.00)[];\n DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519];\n ARC_NA(0.00)[]; FUZZY_RATELIMITED(0.00)[rspamd.com];\n TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[];\n RCPT_COUNT_THREE(0.00)[3]; FROM_EQ_ENVFROM(0.00)[];\n MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2];\n RCVD_VIA_SMTP_AUTH(0.00)[];\n DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo, suse.com:mid,\n suse.com:email]","X-Spam-Score":"-4.30","X-Spam-Level":"","X-Spam-Status":"No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID,\n DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE,SPF_PASS\n shortcircuit=no autolearn=disabled version=4.0.1","X-Spam-Checker-Version":"SpamAssassin 4.0.1 (2024-03-25) on in-2.smtp.seeweb.it","X-Virus-Scanned":"clamav-milter 1.0.9 at in-2.smtp.seeweb.it","X-Virus-Status":"Clean","Subject":"[LTP] [PATCH v2 0/7] Rewrite fs stream testing suite","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":"All tests are now using the new LTP API. The stream05 has been deleted\nbecause I think it was a bit messy and it didn't have a proper testing\nfocus. I replaced it with a new test that is just verifying that fd\nreturned by `fileno()` can be used for basic operations on fd.\n\nSigned-off-by: Andrea Cervesato <andrea.cervesato@suse.com>\n---\nChanges in v3:\n- fix stream01 buffer size\n- add TST_EXP_PASS_PTR_NULL() macro\n\nChanges in v2:\n- add SAFE_FFLUSH() macro\n- remove cleanup_fn from SAFE_* macros\n- stream01: use a double buffer to write data inside file\n- stream02: check if stream is NULL after fopen()\n- stream05: use SAFE_FFLUSH()\n- stream05: don't overengineer SAFE_FILENO() with TST_EXP_FD()\n- Link to v1: https://lore.kernel.org/r/20260123-stream_refactoring-v1-0-281b85f6ab02@suse.com\n\n---\nAndrea Cervesato (7):\n      lib: add safe macros for stream testing suite\n      fs: rewrite stream01 test using new API\n      lib: add TST_EXP_PASS_PTR_NULL() macro\n      fs: rewrite stream02 test using new API\n      fs: rewrite stream03 test using new API\n      fs: rewrite stream04 test using new API\n      fs: rewrite stream05 test using new API\n\n include/safe_stdio_fn.h               |  21 +++\n include/tst_safe_stdio.h              |  21 +++\n include/tst_test_macros.h             |  15 +-\n lib/safe_stdio.c                      | 101 +++++++++++\n testcases/kernel/fs/stream/stream01.c | 155 +++++-----------\n testcases/kernel/fs/stream/stream02.c | 134 ++++----------\n testcases/kernel/fs/stream/stream03.c | 326 ++++++----------------------------\n testcases/kernel/fs/stream/stream04.c | 147 +++++----------\n testcases/kernel/fs/stream/stream05.c | 258 +++++----------------------\n 9 files changed, 373 insertions(+), 805 deletions(-)\n---\nbase-commit: 620d596c79493af089ba6a1c4dc79efcc76a67c7\nchange-id: 20260120-stream_refactoring-4b5a6e9d0ad7\n\nBest regards,"}