From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A8077EE14AE for ; Wed, 6 Sep 2023 16:29:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243287AbjIFQ31 (ORCPT ); Wed, 6 Sep 2023 12:29:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237851AbjIFQ3V (ORCPT ); Wed, 6 Sep 2023 12:29:21 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25CA31BD5; Wed, 6 Sep 2023 09:28:52 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 33280C433C7; Wed, 6 Sep 2023 16:28:10 +0000 (UTC) Date: Wed, 6 Sep 2023 12:28:22 -0400 From: Steven Rostedt To: Mark Brown Cc: Beau Belgrave , Naresh Kamboju , "open list:KERNEL SELFTEST FRAMEWORK" , open list , lkft-triage@lists.linaro.org, Shuah Khan , Masami Hiramatsu , Arnd Bergmann , Anders Roxell Subject: Re: selftests: user_events: Test terminated by assertion Message-ID: <20230906122822.0ecef430@gandalf.local.home> In-Reply-To: References: X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 6 Sep 2023 17:02:19 +0100 Mark Brown wrote: > On Wed, Sep 06, 2023 at 08:39:22AM -0700, Beau Belgrave wrote: > > > What is the expected behavior of self tests if run without their > > feature enabled? Is it expected these should skip vs fail in that case? > > Yes, tests should skip if preconditions for running them aren't met. Yep, see how the ftrace selftests run. If it is determined that the feature is not present, it simple returns UNSUPPORTED and not FAILED. -- Steve