t/axmap: add zero return overlap cases
authorJens Axboe <axboe@kernel.dk>
Wed, 11 Jul 2018 15:11:15 +0000 (09:11 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 11 Jul 2018 15:11:15 +0000 (09:11 -0600)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/axmap.c

index 7a0f308..ed07885 100644 (file)
--- a/t/axmap.c
+++ b/t/axmap.c
@@ -116,11 +116,21 @@ struct overlap_test {
 static int test_overlap(void)
 {
        struct overlap_test tests[] = {
+               {
+                       .start  = 0,
+                       .nr     = 0,
+                       .ret    = 0,
+               },
                {
                        .start  = 16,
                        .nr     = 16,
                        .ret    = 16,
                },
+               {
+                       .start  = 16,
+                       .nr     = 0,
+                       .ret    = 0,
+               },
                {
                        .start  = 0,
                        .nr     = 32,