The test case in which we verify if falling-edge events are correctly
ignored was failing due to a bug in the kernel. This has now been
fixed with commit
df1e76f28ffe ("gpiolib: skip unwanted events, don't
convert them to opposite edge") and released in linux v4.12.6.
Re-enable the test and make this version a hard requirement for
running the test suite.
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
static const char mockup_devpath[] = "/devices/platform/gpio-mockup/gpiochip";
static const unsigned int min_kern_major = 4;
-static const unsigned int min_kern_minor = 11;
-static const unsigned int min_kern_release = 0;
+static const unsigned int min_kern_minor = 12;
+static const unsigned int min_kern_release = 6;
struct mockup_chip {
char *path;
"tools: gpiomon - receive both types of events and kill with SIGTERM",
0, { 8, 8 });
-/*
- * TODO There's a bug in the kernel with filtering out unwanted events. Until
- * it gets fixed, we must skip this test case.
- */
-#if 0
static void gpiomon_ignore_falling_edge(void)
{
test_tool_run("gpiomon", "--rising-edge",
TEST_DEFINE(gpiomon_ignore_falling_edge,
"tools: gpiomon - wait for rising edge events, ignore falling edge",
0, { 8, 8 });
-#endif
static void gpiomon_watch_multiple_lines(void)
{