diff options
| author | Koichiro Den <den@valinux.co.jp> | 2026-02-15 18:03:34 +0300 |
|---|---|---|
| committer | Manivannan Sadhasivam <mani@kernel.org> | 2026-02-24 13:31:04 +0300 |
| commit | b4a31737679576dc8aa6de43d3c10bfad7d3f57e (patch) | |
| tree | 7beea76e2148aca79b05bee7335f6b9c21131d2d /tools/testing | |
| parent | 51fba4aa66192fa65a31f213218167d9af326f1e (diff) | |
| download | linux-b4a31737679576dc8aa6de43d3c10bfad7d3f57e.tar.xz | |
selftests: pci_endpoint: Skip doorbell test when unsupported
PCITEST_DOORBELL may return -EOPNOTSUPP when the endpoint does not
advertise CAP_DYNAMIC_INBOUND_MAPPING.
Treat this like other optional capabilities and skip the doorbell test
instead of reporting a failure.
Suggested-by: Niklas Cassel <cassel@kernel.org>
Signed-off-by: Koichiro Den <den@valinux.co.jp>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Reviewed-by: Niklas Cassel <cassel@kernel.org>
Link: https://patch.msgid.link/20260215150334.3391943-4-den@valinux.co.jp
Diffstat (limited to 'tools/testing')
| -rw-r--r-- | tools/testing/selftests/pci_endpoint/pci_endpoint_test.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/pci_endpoint/pci_endpoint_test.c b/tools/testing/selftests/pci_endpoint/pci_endpoint_test.c index eecb776c33af..e0dbbb2af8c7 100644 --- a/tools/testing/selftests/pci_endpoint/pci_endpoint_test.c +++ b/tools/testing/selftests/pci_endpoint/pci_endpoint_test.c @@ -276,6 +276,8 @@ TEST_F(pcie_ep_doorbell, DOORBELL_TEST) ASSERT_EQ(0, ret) TH_LOG("Can't set AUTO IRQ type"); pci_ep_ioctl(PCITEST_DOORBELL, 0); + if (ret == -EOPNOTSUPP) + SKIP(return, "Doorbell test is not supported"); EXPECT_FALSE(ret) TH_LOG("Test failed for Doorbell\n"); } TEST_HARNESS_MAIN |
