Message ID | 146386772584.1884.14928714720506804854.stgit@dwillia2-desk3.amr.corp.intel.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 19fdbc121702 |
Headers | show |
diff --git a/test/libndctl.c b/test/libndctl.c index fb4a2eac74f9..16072fbc8819 100644 --- a/test/libndctl.c +++ b/test/libndctl.c @@ -615,7 +615,7 @@ static int __check_pfn_create(struct ndctl_region *region, if (rc == 0) { fprintf(stderr, "%s: expected pfn enable failure with align: %lx\n", devname, align); - return rc; + return -ENXIO; } ndctl_pfn_delete(pfn); return 0;
The unit test properly detects when ndctl_pfn_enable() should fail, but it then fails to abort the test. Signed-off-by: Dan Williams <dan.j.williams@intel.com> --- test/libndctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)