Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7091470rwr; Tue, 2 May 2023 09:20:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6jiufaeg+qTM0lecAgIzARIYAUZGpcWR2DCPzvlCON9Q835FGd5sMkdTLtj5WNsT6V781s X-Received: by 2002:a05:6a20:d2c7:b0:f7:fbd8:5951 with SMTP id ir7-20020a056a20d2c700b000f7fbd85951mr18873302pzb.49.1683044445324; Tue, 02 May 2023 09:20:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683044445; cv=none; d=google.com; s=arc-20160816; b=c8Wys0UEGc3g9rJWmdP68I0TSjgi76wNToGyX0ievjAT4Edx7TxD93lpt/ltn3tonp xLmsajnjAtGXbArAaHqxfm5vG1Dq+F1mPOdwgyCQD21CthkDXooHjtSQ04NcCszQXOR0 hRueaMnFfE05rLml3zjXlEgHnnF0xdRDTSAJ1D3bXEqGdQuhgGEdK0VkzEZGPX+Q+mSY wjqNoO1iyq7BYHIaTZ6rdC1DE20kKvRA6oFfGap3qJxRulX5tAg7rXZYGekgMwlOktvc GDDQ3dqAzPUuJGiHNG2NEtO2Awev9tLi2kWnnogUd2DCQs4Fqiy4cdVOC5whttRHdJ8E bAew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=/TeVCDWG+7fjLjv1TzPFW8pM7muOeMBYooKd+TWKo5E=; b=NbSW/D70SmP999kQuwQiCBVpPKfvLIl82ImgCUIqRTSXbe7XYuGPOOdmJrz1Is1RPa aU7ZwXfmJyo4seGALAnaKbnw/woO+FlGtf8Ym0eaj2NFHiA/GsgOkdEhROTU29WYR5af 8BoyP3iQ5poM9VO1MOY34uBRpfYdUOYCwV7tuJZbyNTm4SV3gYKXZ4QpoPBd5VxaWjlK BNkZnlaYY5wNp6YpSQ//S2iA6f6Zas8C6FRcyWUntR6aE5h38OimR0zqKPF0YuWTbl5P CP1GdDjfJP1OWi7E8B802Yx+N/666/5+z35CI8fsiL7NhLStdH7ECMqiTWqUZECb3hPF mlDA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 136-20020a63028e000000b0052c3f0ae398si2373410pgc.158.2023.05.02.09.20.22; Tue, 02 May 2023 09:20:45 -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 S233631AbjEBQKw convert rfc822-to-8bit (ORCPT + 99 others); Tue, 2 May 2023 12:10:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233694AbjEBQKN (ORCPT ); Tue, 2 May 2023 12:10:13 -0400 Received: from mail-yw1-f179.google.com (mail-yw1-f179.google.com [209.85.128.179]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AADB11997; Tue, 2 May 2023 09:10:05 -0700 (PDT) Received: by mail-yw1-f179.google.com with SMTP id 00721157ae682-5529f3b8623so37529507b3.2; Tue, 02 May 2023 09:10:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683043805; x=1685635805; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4B0HvX2nGzxUhkZvCD432MN6qQWUyvh7KEoB0EI6v8I=; b=K/diUuseYVVyggeT9nylJBglUBxd5PPk72D3anqdElFClsXbdip6II6v3FUnX8avRl tDu1SLsQInUXtEqPGQ1u8OZRShTVlF6vYHix73j+MO0XwDtvmQFAcrAFN6L+vj5WJnNH X1f9Co65KPtfB7Xa2tXi6eyOVyQ9cZoYm1fXhd7a9x694ntbAdy49SPQ86jWEPqjir7D vRFbu8Xd28h9I+5z5YHM9UKuWJQQVz2EaE4TXyAoPQADzCsTLivgcshpaYBWCHIpRkTx dDfJLN8N0tQ3si+sidWfk7xz2yoWf4yVuVuVoeFO9wzotbtvhtsAaQlpwef2dD04UtZY mlGQ== X-Gm-Message-State: AC+VfDyeCkGeCp8wA6ATJbQUW7bx0x4cpcPil3o/3cJ4vMoaGZLXFRHT WbfrH26sm0foICenqdbWXL6TJ17QwUyapA== X-Received: by 2002:a25:ea04:0:b0:b9a:7693:93f7 with SMTP id p4-20020a25ea04000000b00b9a769393f7mr15651671ybd.45.1683043804666; Tue, 02 May 2023 09:10:04 -0700 (PDT) Received: from mail-yw1-f173.google.com (mail-yw1-f173.google.com. [209.85.128.173]) by smtp.gmail.com with ESMTPSA id 62-20020a251241000000b00b9db62abff3sm1837597ybs.58.2023.05.02.09.10.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 02 May 2023 09:10:03 -0700 (PDT) Received: by mail-yw1-f173.google.com with SMTP id 00721157ae682-55a829411b5so16329407b3.1; Tue, 02 May 2023 09:10:02 -0700 (PDT) X-Received: by 2002:a25:142:0:b0:b9e:7613:fcb1 with SMTP id 63-20020a250142000000b00b9e7613fcb1mr1967815ybb.63.1683043802650; Tue, 02 May 2023 09:10:02 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Geert Uytterhoeven Date: Tue, 2 May 2023 18:09:50 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/2] Input: tests - miscellaneous fixes To: Javier Martinez Canillas Cc: Dmitry Torokhov , Brendan Higgins , David Gow , linux-input@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Hi Javier, On Tue, May 2, 2023 at 12:17 PM Geert Uytterhoeven wrote: > This patch series fixes a crash in the new input selftest, and makes the > test available when the KUnit framework is modular. > > Unfortunately test 3 still fails for me (tested on Koelsch (R-Car M2-W) > and ARAnyM): > > KTAP version 1 > # Subtest: input_core > 1..3 > input: Test input device as /devices/virtual/input/input1 > ok 1 input_test_polling > input: Test input device as /devices/virtual/input/input2 > ok 2 input_test_timestamp > input: Test input device as /devices/virtual/input/input3 > # input_test_match_device_id: ASSERTION FAILED at # drivers/input/tests/input_test.c:99 > Expected input_match_device_id(input_dev, &id) to be true, but is false > not ok 3 input_test_match_device_id > # input_core: pass:2 fail:1 skip:0 total:3 > # Totals: pass:2 fail:1 skip:0 total:3 > not ok 1 input_core Adding more debug code shows that it's the test on evbit [1] in input_match_device_id() that fails. Looking at your input_test_match_device_id(), I think you expect the checks for the various bitmaps to be gated by "if (id->flags & INPUT_DEVICE_ID_MATCH_EVBIT)", like is done for the other checks? [1] https://elixir.bootlin.com/linux/latest/source/drivers/input/input.c#L1021 Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds