Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp10842159rwb; Fri, 25 Nov 2022 08:19:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf41IodA+vmDseceQxSV6ZHhLWWBhHwx5sczSIn9xuDMbHiVsWE028w35qNmxNdSWn+GQDDs X-Received: by 2002:a17:903:1206:b0:188:cd12:c2e1 with SMTP id l6-20020a170903120600b00188cd12c2e1mr21979294plh.171.1669393150736; Fri, 25 Nov 2022 08:19:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669393150; cv=none; d=google.com; s=arc-20160816; b=M/pbEYDDckxa4YjG1VSLIyKVZ+20T3pJsVkAvMtSlvGtFFsILqd7Ouj/esqBoeXnDV C2aKB4djBrEqSuH+S4cyibCivHATgbeJAK5H8VoV8lLTnuccC2HjG5MDulyB1DCATYqh /lWIUDNkGkQn9S9AAVgmzWVS04ewp1uxF6B7da1SnHbiZSMjq8PIriAG++Lp6ORxGodL ZMXIKs/U6GWc93LNPS+QKOT/IEnbsbTP7gPI7XXV2huqZxzCPbUARp2qMRVB9cXXd/51 dUVuXFNpjG4m+jOo5IRQPnLoQuEETzr+Yjax/DS0Qe1sD8yp6Bw3IuwjGlsgKKIYuTU5 DCkQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id rm12-20020a17090b3ecc00b0020a71053a85si4642434pjb.143.2022.11.25.08.19.00; Fri, 25 Nov 2022 08:19:10 -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 + 85 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 Content-Transfer-Encoding: 8bit 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 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 -- 2.38.1