[PATCH v3 11/14] test/eventdev: skip test if eventdev driver disabled

Stephen Hemminger
2026-01-22T00:55:16Z

If DPDK is build with -Ddisable_drivers=eventdev/* then the
test will be unable to create the needed software eventdev device.

Fixes: 50823f30f0c8 ("test: build using per-file dependencies")
Cc: stable@dpdk.org

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
app/test/test_event_eth_tx_adapter.c | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/app/test/test_event_eth_tx_adapter.c b/app/test/test_event_eth_tx_adapter.c
index a128a4f2c2..0753634e7d 100644
--- a/app/test/test_event_eth_tx_adapter.c
+++ b/app/test/test_event_eth_tx_adapter.c
@@ -208,11 +208,14 @@ testsuite_setup(void)
TEST_ASSERT(err == 0, "Port initialization failed err %d\n", err);

if (rte_event_dev_count() == 0) {
- printf("Failed to find a valid event device,"
- " testing with event_sw0 device\n");
+ printf("Failed to find a valid event device, testing with event_sw0 device\n");
err = rte_vdev_init(vdev_name, NULL);
- TEST_ASSERT(err == 0, "vdev %s creation failed %d\n",
- vdev_name, err);
+ if (err != 0) {
+ printf("vdev %s creation failed %d: %s\n", vdev_name,
+ err, strerror(-err));
+ return TEST_SKIPPED;
+ }
+
event_dev_delete = 1;
}
return err;
--
2.51.0