tests: mockup: make sure the gpio-mockup debugfs directory is writable
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Sun, 4 Aug 2019 07:48:13 +0000 (09:48 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Sun, 4 Aug 2019 08:13:21 +0000 (10:13 +0200)
commitb434907c5e587dd366836ce5c7fa4194ae78345f
tree3a92f8b8671cedcd0cca630985a867876430f9d6
parentfb15485948b46337a0b097aba6ed99c0ce9d9f5f
tests: mockup: make sure the gpio-mockup debugfs directory is writable

The gpio-mockup library needs write permissions to make full use of
the debugfs interface. Add the W_OK flag to the call to access() when
preparing the context structure.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
tests/mockup/gpio-mockup.c