t/axmap: add regression case for recent overlap failure case
authorJens Axboe <axboe@kernel.dk>
Wed, 11 Jul 2018 21:17:32 +0000 (15:17 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 11 Jul 2018 21:17:32 +0000 (15:17 -0600)
Catches the issue that bd71edcedc3d fixes.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/axmap.c

index ed078853e052f7fd7e237bd450f55c1c6cddeb83..c40bd13bd43b0d86673b6ba5b19fa1e9afe1a0c1 100644 (file)
--- a/t/axmap.c
+++ b/t/axmap.c
@@ -191,6 +191,16 @@ static int test_overlap(void)
                        .nr     = 2,
                        .ret    = 0,
                },
+               {
+                       .start  = 22684,
+                       .nr     = 1,
+                       .ret    = 1,
+               },
+               {
+                       .start  = 22670,
+                       .nr     = 60,
+                       .ret    = 14,
+               },
                {
                        .start  = -1U,
                },