From patchwork Thu Mar 10 12:33:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: zhanglianjie X-Patchwork-Id: 1603857 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=213.254.12.146; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KDpR56G2Vz9sGl for ; Thu, 10 Mar 2022 23:34:24 +1100 (AEDT) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 058623C61C9 for ; Thu, 10 Mar 2022 13:34:23 +0100 (CET) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-6.smtp.seeweb.it (in-6.smtp.seeweb.it [217.194.8.6]) (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 83B6F3C012D for ; Thu, 10 Mar 2022 13:34:21 +0100 (CET) Received: from smtpbgsg2.qq.com (smtpbgsg2.qq.com [54.254.200.128]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by in-6.smtp.seeweb.it (Postfix) with ESMTPS id CC2481400C5B for ; Thu, 10 Mar 2022 13:34:15 +0100 (CET) X-QQ-mid: bizesmtp75t1646915647tiq9dml8 Received: from localhost.localdomain ( [58.240.82.166]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 10 Mar 2022 20:33:58 +0800 (CST) X-QQ-SSF: 01400000002000C0I000B00A0000000 X-QQ-FEAT: F3yR32iATbgXTrR1JwMJzXXgcfsjojdgYTnNVgsN6rjnqKgV/CTMHUJaV3EJz wZot1INozXdpEf3o+/RioBYXwYrL3vQpxdV1tD0cM79pX0PXMnN9z2x39dW+OnFzbPadqFU Egv/ZE8u/dcmV1F/pCPNOe7UNVO8IfvJ654veIMaTr7d+H81EDpaXB/89Tq8bIThwvZICDp 8A+y1J/CbRBGauHJDPEyx/PAcUQlIL9+wmqsdaIj1gNlFJ/E+IY/5U0AHJWQITuGbnEidvt 75xCOJXytVkHN5qjAOPN1vCGSOHIDn4nxEwaEaKDQ+Tu8vjGWDMxPB6CjykwF0PS9QOwen/ a3gxKvdnu95TG6hY7qFG4QMcqyXGQ== X-QQ-GoodBg: 2 From: Lianjie Zhang To: ltp@lists.linux.it Date: Thu, 10 Mar 2022 20:33:55 +0800 Message-Id: <20220310123355.26596-1-zhanglianjie@uniontech.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:uniontech.com:qybgforeign:qybgforeign6 X-QQ-Bgrelay: 1 X-Virus-Scanned: clamav-milter 0.102.4 at in-6.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=-0.0 required=7.0 tests=SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on in-6.smtp.seeweb.it Subject: [LTP] [PATCH v2] syscalls/clock_settime03: Fix testcases have been waiting, timeout failure 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: , Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" From: zhanglianjie If the system enables auto-synchronization time configuration, this test case will wait until the timeout. Therefore, the automatic synchronization time configuration of the system needs to be turned off in the setup phase. message: tst_test.c:1457: TINFO: Timeout per run is 0h 05m 00s clock_settime03.c:35: TINFO: Testing variant: syscall with old kernel spec tst_test.c:1506: TINFO: If you are running on slow machine, try exporting LTP_TIMEOUT_MUL > 1 tst_test.c:1507: TBROK: Test killed! (timeout?) Signed-off-by: zhanglianjie --- 2.20.1 diff --git a/testcases/kernel/syscalls/clock_settime/clock_settime03.c b/testcases/kernel/syscalls/clock_settime/clock_settime03.c index f196a257c..ce0e7b4c4 100644 --- a/testcases/kernel/syscalls/clock_settime/clock_settime03.c +++ b/testcases/kernel/syscalls/clock_settime/clock_settime03.c @@ -31,6 +31,7 @@ static struct time64_variants variants[] = { static void setup(void) { struct time64_variants *tv = &variants[tst_variant]; + int ret; tst_res(TINFO, "Testing variant: %s", tv->desc); start.type = end.type = its.type = tv->ts_type; @@ -40,6 +41,10 @@ static void setup(void) sizeof(start.ts.kern_old_ts.tv_sec) == 4) { tst_brk(TCONF, "Not Y2038 safe to run test"); } + + ret = tst_system("timedatectl set-ntp false"); + if (ret) + tst_res(TINFO, "failed to timedatectl set-ntp"); } static void run(void)