Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DA9CBC433EF for ; Thu, 6 Jan 2022 13:40:36 +0000 (UTC) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id A59423C0F6A for ; Thu, 6 Jan 2022 14:40:34 +0100 (CET) Received: from in-2.smtp.seeweb.it (in-2.smtp.seeweb.it [217.194.8.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id AA6983C0F6A for ; Thu, 6 Jan 2022 14:40:24 +0100 (CET) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-2.smtp.seeweb.it (Postfix) with ESMTPS id 38E0860085E for ; Thu, 6 Jan 2022 14:40:23 +0100 (CET) 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-out2.suse.de (Postfix) with ESMTPS id 5D8A11F385 for ; Thu, 6 Jan 2022 13:40:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1641476423; 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=stYa05DAE7ErLVgckntcnX0WcByMO1sW91VT5zwDKVM=; b=zO0/wC/4j9UZl/NugM1zLJPNCoLaTSakROF9/BrJbgjfy+mCEmIR++aZ7QQLiIoYkGxmx0 wftmxkGrfHXq6SEnU6fBEyM+79GVRyR+on0EqOULchqbzNeDqitGQjFn33+wZHv4WgNmxa ypgCXLd73YE1vcaamKnUjFOk40Qb8hc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1641476423; 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=stYa05DAE7ErLVgckntcnX0WcByMO1sW91VT5zwDKVM=; b=PmdKZ8Ke46aRgB+YjETg87a0lcHJPrVM06ZJ+lM4/ThCYwoxEp3cIRulJWkpW0XPIsBcrC KIumLwaG/js0UIAA== 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 3EE6213C0D for ; Thu, 6 Jan 2022 13:40:23 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id nFD5Dkfx1mHnTAAAMHmgww (envelope-from ) for ; Thu, 06 Jan 2022 13:40:23 +0000 From: Cyril Hrubis To: ltp@lists.linux.it Date: Thu, 6 Jan 2022 14:41:54 +0100 Message-Id: <20220106134154.2398-1-chrubis@suse.cz> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.102.4 at in-2.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [COMMITTED] [PATCH] dio_append: Fix with -i2 X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-bounces+ltp=archiver.kernel.org@lists.linux.it Sender: "ltp" We have to delete the file at the end of the iteration otherwise we will not append on second and subseqent iterations. Signed-off-by: Cyril Hrubis --- testcases/kernel/io/ltp-aiodio/dio_append.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testcases/kernel/io/ltp-aiodio/dio_append.c b/testcases/kernel/io/ltp-aiodio/dio_append.c index f9de54da6..59fd710e7 100644 --- a/testcases/kernel/io/ltp-aiodio/dio_append.c +++ b/testcases/kernel/io/ltp-aiodio/dio_append.c @@ -77,6 +77,8 @@ static void run(void) tst_res(TPASS, "All bytes read were zeroed"); *run_child = 0; + + SAFE_UNLINK(filename); } static struct tst_test test = { -- 2.34.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp