From mboxrd@z Thu Jan 1 00:00:00 1970 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 46B28C43334 for ; Fri, 17 Jun 2022 17:21:24 +0000 (UTC) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 794923C8CA5 for ; Fri, 17 Jun 2022 19:21:21 +0200 (CEST) Received: from in-3.smtp.seeweb.it (in-3.smtp.seeweb.it [217.194.8.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id CFE093C8D8E for ; Fri, 17 Jun 2022 19:20:41 +0200 (CEST) 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-3.smtp.seeweb.it (Postfix) with ESMTPS id 57C901A01456 for ; Fri, 17 Jun 2022 19:20:40 +0200 (CEST) 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 8A5501F8B4; Fri, 17 Jun 2022 17:20:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1655486440; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3wiYsJ713P8wiQXp0y7NfujkzlMx7BJtUTGgN07e8nU=; b=b7vhpG0uDakaF7+7MhNdf4+DYY5eNxBfF+4zc6OjbwyfWe8BZ+kzRiECfZMFoTR296tyXg S0vCe+G8uop3oSanj1Avo6MY/knjJM5Mq84OtB8DEuYSTuWJQ4cW7YrZQHslzzCgXOh74X IYCgoR+mGV65bl7nIRtUINIDTYD5Rf8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1655486440; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3wiYsJ713P8wiQXp0y7NfujkzlMx7BJtUTGgN07e8nU=; b=PKhlu7v4ez31O1ydR9/co61BrUktH5fjmFaPSn93YofmrmRAlHHF23UlJ3dQHYUTyuo9AM WCWz809YBBErELCQ== 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 ECB7E1348E; Fri, 17 Jun 2022 17:20:39 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id yL6VLue3rGKacwAAMHmgww (envelope-from ); Fri, 17 Jun 2022 17:20:39 +0000 From: Avinesh Kumar To: ltp@lists.linux.it Date: Fri, 17 Jun 2022 22:50:22 +0530 Message-Id: <20220617172025.23975-4-akumar@suse.de> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220617172025.23975-1-akumar@suse.de> References: <20220617172025.23975-1-akumar@suse.de> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.102.4 at in-3.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH 3/6] Remove unnecessary header includes 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" Signed-off-by: Avinesh Kumar --- testcases/kernel/syscalls/utime/utime03.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/testcases/kernel/syscalls/utime/utime03.c b/testcases/kernel/syscalls/utime/utime03.c index 2358fd70b..0c64518d2 100644 --- a/testcases/kernel/syscalls/utime/utime03.c +++ b/testcases/kernel/syscalls/utime/utime03.c @@ -18,11 +18,8 @@ * - The user ID of the process has write access to the file. */ -#include #include #include -#include -#include #include "tst_test.h" #include "tst_uid.h" @@ -60,7 +57,7 @@ static void run(void) struct stat statbuf; time_t mintime, maxtime; - utbuf.modtime = time(0) - 5; + utbuf.modtime = tst_get_fs_timestamp() - 5; utbuf.actime = utbuf.modtime + 1; TST_EXP_PASS_SILENT(utime(TEMP_FILE, &utbuf)); SAFE_STAT(TEMP_FILE, &statbuf); -- 2.36.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp