From c30f01dc0c62d29370623daf15ac1e2a33b652a6 Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Wed, 10 Apr 2019 16:47:19 +0200 Subject: [PATCH] tests: fix debugfs path Since linux v5.1 the debugfs path for gpio-mockup changed. Use the new path both for the main directory as well as for the chip subdirectories which no longer use the chip's label. Signed-off-by: Bartosz Golaszewski --- tests/gpiod-test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/gpiod-test.c b/tests/gpiod-test.c index 0ffda44..1f37985 100644 --- a/tests/gpiod-test.c +++ b/tests/gpiod-test.c @@ -379,8 +379,8 @@ static void *event_worker(void *data TEST_UNUSED) rv = pthread_cond_timedwait(&ev->cond, &ev->lock, &ts); if (rv == ETIMEDOUT) { path = xappend(NULL, - "/sys/kernel/debug/gpio-mockup-event/gpio-mockup-%c/%u", - 'A' + ev->chip_index, ev->line_offset); + "/sys/kernel/debug/gpio-mockup/gpiochip%d/%u", + ev->chip_index, ev->line_offset); fd = open(path, O_RDWR); free(path); -- 2.30.2