If the namespace size is not one we expect, fail the test.

Signed-off-by: Dan Williams <dan.j.willi...@intel.com>
---
 test/libndctl.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/libndctl.c b/test/libndctl.c
index e36fe8a4fe6f..a0bf74a9c333 100644
--- a/test/libndctl.c
+++ b/test/libndctl.c
@@ -984,7 +984,7 @@ static int check_btt_size(struct ndctl_btt *btt)
                fprintf(stderr, "%s: %s unexpected namespace size: %llx\n",
                                __func__, ndctl_namespace_get_devname(ndns),
                                ns_size);
-               break;
+               return -ENXIO;
        }
 
        expect = expect_table[size_select][sect_select];

_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm

Reply via email to