Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1924289rwb; Fri, 28 Jul 2023 18:16:41 -0700 (PDT) X-Google-Smtp-Source: APBJJlHWVhId8QKkZ+sjxinb8t9os4uEt19Gd7sUUpSjm3ff6sZicHflhIJok+FOciyHdSMMwpd0 X-Received: by 2002:a05:6a20:840d:b0:12d:23ea:9ccc with SMTP id c13-20020a056a20840d00b0012d23ea9cccmr4024464pzd.39.1690593400857; Fri, 28 Jul 2023 18:16:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690593400; cv=none; d=google.com; s=arc-20160816; b=emBs+73k6aYHAwFZJg7pTtG9oflkpeqEvSMvvseD0FA2IGjT8Pv1R9cPQHXGFs+bWC pjewE2LLCAToJVGau3Qec/ynqPgeuFtxzjxYSo4bEu8TmP/+Qgs88lXPGaXruCltxR3g 9xArNNKB9sHVCvmCd6vDdBbD+d6gUGnf+mjmyofFdkF9OHaaGXSvHv79ktrWOTShyBKM myl2qkFunBD+g4ahufkXzwUkHVFDeaE6GshXq08AQWO1MbAbQ1zhcWPppOFhQQQfgUHE GKvFXA6dWsSP/EhAITVwIQs0NBkbqfqVSxh8wuO+JTnpkShfpIZ1Dvpre4e4JRkx2zP/ SNtw== 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:dkim-signature; bh=gd1qe4QbPmGfO+Bk3+XG73JXlXmRvH7reO6CZtVAH5Q=; fh=l/oUealUa4VFJ0aIVGOctW3sF8GPVBNsFSkLI4WH5kA=; b=TO/esS0xKNvs3HCj26PQbLjlw2HO2YKmZEfVNebuBu+TFXy9OjP3gs2U4QXupge4yp JmpqY8UMW0E/IOGOrb+XR/ungq4+7eZvq/Hd1yJBsHoJOZF5Jt5OARbTeNl1t34GuWBp y/eTVTtl8Ai+72rjs2vg3zkHtrnlIHsnu8z6RrFlDK9Tu4XhbBBN/x3m98Px0yNCFdlJ SxZWDyZLm+QkYDwSqxkpAiBQjfyPJtOQ2Wx9OGjycQ0c5IfKN3q10Dmbh6IHayN0QOoT /TVDfkuG1Pvm2fpt+oxzdpJS5i80GFi6FPKhpjdhxugTdMCy5IKO992gLxGWFa/iaG/y mTQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=aAHrOOZt; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 85-20020a630258000000b0054fd9f2dfebsi3835708pgc.704.2023.07.28.18.16.29; Fri, 28 Jul 2023 18:16:40 -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; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=aAHrOOZt; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229582AbjG1WyB (ORCPT + 99 others); Fri, 28 Jul 2023 18:54:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229880AbjG1WyA (ORCPT ); Fri, 28 Jul 2023 18:54:00 -0400 Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBB7F3C34 for ; Fri, 28 Jul 2023 15:53:59 -0700 (PDT) Received: by mail-io1-xd36.google.com with SMTP id ca18e2360f4ac-785d3a53ed6so29941739f.1 for ; Fri, 28 Jul 2023 15:53:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1690584839; x=1691189639; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=gd1qe4QbPmGfO+Bk3+XG73JXlXmRvH7reO6CZtVAH5Q=; b=aAHrOOZtX4YkS5dDp6i00RVInJ/V8YYEPGFes6bIW0Fsm8zR37E2cKe1vRa68XDYXg eCLVnUvhRgoDKMWfuMZVUWXV5mhfMGrzT0x+os1CCmpB6QKV6vXiyDHyJHi8WZYmboqM OZ7g69zW0tivBmCTfqZtUTyD2S/GCx2bWvyFI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690584839; x=1691189639; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gd1qe4QbPmGfO+Bk3+XG73JXlXmRvH7reO6CZtVAH5Q=; b=U1IfcqzFEKo6R8TKep07uW9T7aEfC1w7ErcZI0zbmV1pYcxvV/UePaPg+/RuARri0S fv5Umc59MXYETUsN1ljGgQ8HEi/Uz4jLEpUMPGwzh4dwRj98rb6uKlAnbsGynzoqjsbN id0ftaVDBIFeItkhyBA3TP6XHAiA0H6QtG6T1N4zzPfT9ILbx5pPASGxVlw0cuBJYTKV dqIB4LMHfRBU0XaBO7p+1r9ns9pUseDnnr7nOlxE0d+ztNwdScB+HsxtIZGIxThlcAKf Aa6txLlPnE5tacEKkSxBq/XlRwMPNyG/iOZPQIP81rzPIbWaXpx4DSpRc4cYvA2d+fRU 4FjA== X-Gm-Message-State: ABy/qLaDXpCJWgb+Ecr2WiJsAvWx0KzQRcr6/z7mhuk42lHcSnDlju5/ fiz0n0sJzYqDu5S1hwFO4l3mfQfJebb49JCDbxaW+Q== X-Received: by 2002:a05:6602:3d5:b0:780:d65c:d78f with SMTP id g21-20020a05660203d500b00780d65cd78fmr1413820iov.2.1690584839167; Fri, 28 Jul 2023 15:53:59 -0700 (PDT) Received: from shuah-tx13.internal ([38.15.45.1]) by smtp.gmail.com with ESMTPSA id i7-20020a02cc47000000b0042b0ce92dddsm1390337jaq.161.2023.07.28.15.53.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jul 2023 15:53:58 -0700 (PDT) From: Shuah Khan To: shuah@kernel.org, Liam.Howlett@oracle.com, anjali.k.kulkarni@oracle.com, kuba@kernel.org Cc: Shuah Khan , davem@davemloft.net, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] selftests:connector: Fix input argument error paths to skip Date: Fri, 28 Jul 2023 16:53:57 -0600 Message-Id: <20230728225357.5040-1-skhan@linuxfoundation.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 Fix input argument parsing paths to skip from their error legs. This fix helps to avoid false test failure reports without running the test. Signed-off-by: Shuah Khan --- v2: Removed root check based on Anjali's review comments. tools/testing/selftests/connector/proc_filter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/connector/proc_filter.c b/tools/testing/selftests/connector/proc_filter.c index 4fe8c6763fd8..4a825b997666 100644 --- a/tools/testing/selftests/connector/proc_filter.c +++ b/tools/testing/selftests/connector/proc_filter.c @@ -248,7 +248,7 @@ int main(int argc, char *argv[]) if (argc > 2) { printf("Expected 0(assume no-filter) or 1 argument(-f)\n"); - exit(1); + exit(KSFT_SKIP); } if (argc == 2) { @@ -256,7 +256,7 @@ int main(int argc, char *argv[]) filter = 1; } else { printf("Valid option : -f (for filter feature)\n"); - exit(1); + exit(KSFT_SKIP); } } -- 2.39.2