From: Bartosz Golaszewski Date: Wed, 10 Apr 2019 14:47:19 +0000 (+0200) Subject: tests: fix debugfs path X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c30f01dc0c62d29370623daf15ac1e2a33b652a6;p=qemu-gpiodev%2Flibgpiod.git 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 --- 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);