From patchwork Fri Nov 25 15:42:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suzuki K Poulose X-Patchwork-Id: 26075 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp4113314wrr; Fri, 25 Nov 2022 07:45:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf5Nas1nOL2zx8YHVhcWo8mh6hYdb8OhWWiPXo4BCFm6Kk5+ZsQxqwr3LnJWLT9L8U8bMlec X-Received: by 2002:a17:906:504:b0:7b5:2d9f:4019 with SMTP id j4-20020a170906050400b007b52d9f4019mr23209864eja.536.1669391143044; Fri, 25 Nov 2022 07:45:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669391143; cv=none; d=google.com; s=arc-20160816; b=baItqxGf6v/eIx3NhPmZl+D37qw6Rqc2Lsbk9dN6bWbCWcToJ0siuY+YDkIYv/plI5 4Z4/cpRFVnghThbVoSDYHDxd0een3auqss0+K3ZQRlnA0gZFIJ4p6fOk8bd058TotqPW OVQFnmnCOYa/8osUBzUMlG/J9i7e2K4Sqf9rv77MHLY1GXXoxIcPqtxXrnnkjHPZrVde Y+MaG/Rz9dZSiu7eARP88ZngU676G+maQ4IxDcAqS6lDiRDJjhZNzbgf8rsm6ydo5wE6 1+Qn4hePxv9m7lkmAe5oGmYMyzDVLOLe05oWnmGwfA/OqS/yTtwvkO7nbEOgvf+cbfQX YWfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=DVrII/FmNobgFd4LSxovZvx++F7C4uSPOWXNz0FyhQU=; b=YAIOiAEFOgO3/RRBOBeXwrgOmL8hYLB6eJULNoKIT9OrqwIeiC5tos9SzSHKFroTka 4bzbsGf3LxRd+k3j2RyUGv5BWtitgumbXaxRh9dz3gJ58WqeuixIhBTTUhJb7G1OSO9a CHhPGTmqrEkBnRFI0esVIRp9ChzU1+xxa5W5bUyl5r3H2b/V3ngj8eOfKbxpIoemOHU/ 3uXzKieysQdS04vZWLh5QbDlhPBlDjgR7MBKuRhdjstjwVlMz8QR1ys2ZGRfp2KYW0jF bAU8M2SUdC8hWxjhis8ZWGbhd4hZHi/vJ/NYx7eEgXSHZUHQMI5xlav1oj7tjXdRWRyy BsNw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l22-20020a50d6d6000000b004637e16cf97si3654235edj.597.2022.11.25.07.45.17; Fri, 25 Nov 2022 07:45:43 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229598AbiKYPmn (ORCPT + 99 others); Fri, 25 Nov 2022 10:42:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbiKYPmL (ORCPT ); Fri, 25 Nov 2022 10:42:11 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0605A46672; Fri, 25 Nov 2022 07:42:11 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4AC372B; Fri, 25 Nov 2022 07:42:17 -0800 (PST) Received: from ewhatever.cambridge.arm.com (ewhatever.cambridge.arm.com [10.1.197.1]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id D7DA63F73B; Fri, 25 Nov 2022 07:42:09 -0800 (PST) From: Suzuki K Poulose To: linux-kselftest@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Suzuki K Poulose , Shuah Khan , Christoph Hellwig , Dilip Kota Subject: [PATCH] selftests: splice_read: Fix sysfs read cases Date: Fri, 25 Nov 2022 15:42:01 +0000 Message-Id: <20221125154201.1991127-1-suzuki.poulose@arm.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham 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?1750483487276451875?= X-GMAIL-MSGID: =?utf-8?q?1750483487276451875?= sysfs now supports splice_* operations with commit f2d6c2708bd84 ("kernfs: wire up ->splice_read and ->splice_write") Update the selftests to expect success instead of failure. Cc: Shuah Khan Cc: Christoph Hellwig Cc: Siddharth Gupta Signed-off-by: Suzuki K Poulose --- tools/testing/selftests/splice/short_splice_read.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/splice/short_splice_read.sh b/tools/testing/selftests/splice/short_splice_read.sh index 22b6c8910b18..4710e09f49fa 100755 --- a/tools/testing/selftests/splice/short_splice_read.sh +++ b/tools/testing/selftests/splice/short_splice_read.sh @@ -127,7 +127,7 @@ expect_success "proc_handler: special read splice" test_splice /proc/sys/kernel/ if ! [ -d /sys/module/test_module/sections ] ; then expect_success "test_module kernel module load" modprobe test_module fi -expect_failure "kernfs attr splice" test_splice /sys/module/test_module/coresize -expect_failure "kernfs binattr splice" test_splice /sys/module/test_module/sections/.init.text +expect_success "kernfs attr splice" test_splice /sys/module/test_module/coresize +expect_success "kernfs binattr splice" test_splice /sys/module/test_module/sections/.init.text exit $ret