From 5031b5cf997db16c9e3d95eaba8587a3beed892a Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 11 Jul 2018 09:11:15 -0600 Subject: [PATCH] t/axmap: add zero return overlap cases Signed-off-by: Jens Axboe --- t/axmap.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/t/axmap.c b/t/axmap.c index 7a0f3080..ed078853 100644 --- 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, -- 2.25.1