t/axmap: add regression test for overlap case resulting in 0 settable bits
authorJens Axboe <axboe@kernel.dk>
Thu, 23 Aug 2018 18:22:58 +0000 (12:22 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 23 Aug 2018 18:22:58 +0000 (12:22 -0600)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/axmap.c

index 1752439..75417bd 100644 (file)
--- a/t/axmap.c
+++ b/t/axmap.c
@@ -351,6 +351,11 @@ static int test_overlap(void)
                        .nr     = 60,
                        .ret    = 14,
                },
+               {
+                       .start  = 22670,
+                       .nr     = 60,
+                       .ret    = 0,
+               },
                {
                        .start  = -1U,
                },