From patchwork Tue Mar 14 11:53:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Klauser X-Patchwork-Id: 69531 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1717209wrd; Tue, 14 Mar 2023 05:09:29 -0700 (PDT) X-Google-Smtp-Source: AK7set9klWl411CJwXF5W6w/FUiD5jb9X+G2+KP6GVM3riokjNxX/SgwM1MD9d0UDntUTJV9CSN8 X-Received: by 2002:a62:794e:0:b0:623:84d9:4c8 with SMTP id u75-20020a62794e000000b0062384d904c8mr8195948pfc.17.1678795769097; Tue, 14 Mar 2023 05:09:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678795769; cv=none; d=google.com; s=arc-20160816; b=rFmkATRJAN8tffihYRCt6AjtWT6FVVRMNtZvatq+QpGeF1Oxh+EZfJhloT3k7nN40f OGauatqIDFqqoqH8hncmEb+cT9RhYKfpM9Vmw+9sQ1fBlhG1tOqzSmP8qtS/6VCg18c+ bnYGRsfYF0qQjFl/sFE7AWYQXQyK/J/JGdyzIPBtX1m1m5xfoAGCStxutg7sVd+GbAgJ L3PFxYTsIcG6l+U9u9kh9mdNxcWi2EkRtVFNWvbGjymjYfXNg1nV9vFiafvkeGq3gNbf 1K9bGBgsVvuOkZNga+FGcO6FOnurz2XihpF9NH8eiHgs5oh/060kooNAqp6yz8SBX5Iy QlNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=rHwnUMyiydlYL+BfVhPYnaKcHMICX9Nkt/vxNB1Kf3o=; b=CAOeLYCBSUc/0p/bCFo9sMpn+7AuOdf088jUIyn+GINo9eAIvYzD2ZvetwXsoba96E KitPBuAcwZ5df0Gv/707rPvL78CIw3x8ViMozLEHnZTVXrZIPsZdOFvP77UDg5AGxSse emXG3DXJy4hJwD0x0akalEWRaNnVB8PQ8hbJklgeQ0vl6b8jqrcEXpN/Z3/3+b+cDSGq FFYLYqRFN36HmEj5YaMTGVedX2GRNINZzJnIeotqa9lkU7YxD872CxeyiMwwaCXH5Iwr kir7kQmhw8h8zBpUq7SajU1NH//6JEZw7ztUp5F6ae3fMh/Y1fqD2FzbXK76TF4/wPWS d+mw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y5-20020aa78f25000000b00623cc95e511si2117730pfr.117.2023.03.14.05.09.14; Tue, 14 Mar 2023 05:09:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230343AbjCNLx6 (ORCPT + 99 others); Tue, 14 Mar 2023 07:53:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229627AbjCNLx4 (ORCPT ); Tue, 14 Mar 2023 07:53:56 -0400 Received: from sym2.noone.org (sym.noone.org [IPv6:2a01:4f8:120:4161::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19BCD18AA6; Tue, 14 Mar 2023 04:53:55 -0700 (PDT) Received: by sym2.noone.org (Postfix, from userid 1002) id 4PbX402HfLzvjfn; Tue, 14 Mar 2023 12:53:52 +0100 (CET) From: Tobias Klauser To: Christian Brauner , Shuah Khan Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] selftests/clone3: fix number of tests in ksft_set_plan Date: Tue, 14 Mar 2023 12:53:52 +0100 Message-Id: <20230314115352.20623-1-tklauser@distanz.ch> X-Mailer: git-send-email 2.11.0 X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760344952114927330?= X-GMAIL-MSGID: =?utf-8?q?1760344952114927330?= Commit 515bddf0ec41 ("selftests/clone3: test clone3 with CLONE_NEWTIME") added an additional test, so the number passed to ksft_set_plan needs to be bumped accordingly. Also use ksft_finish to print results and exit. This will catch future mismatches between ksft_set_plan and the number of tests being run. Fixes: 515bddf0ec41 ("selftests/clone3: test clone3 with CLONE_NEWTIME") Cc: Christian Brauner Signed-off-by: Tobias Klauser --- tools/testing/selftests/clone3/clone3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/clone3/clone3.c b/tools/testing/selftests/clone3/clone3.c index 4fce46afe6db..7b45c9854202 100644 --- a/tools/testing/selftests/clone3/clone3.c +++ b/tools/testing/selftests/clone3/clone3.c @@ -129,7 +129,7 @@ int main(int argc, char *argv[]) uid_t uid = getuid(); ksft_print_header(); - ksft_set_plan(17); + ksft_set_plan(18); test_clone3_supported(); /* Just a simple clone3() should return 0.*/