tools/testing/nvdimm: allow custom error code injection
authorDan Williams <dan.j.williams@intel.com>
Mon, 9 Apr 2018 20:56:43 +0000 (13:56 -0700)
committerDan Williams <dan.j.williams@intel.com>
Mon, 16 Apr 2018 15:18:51 +0000 (08:18 -0700)
commit55c72ab62e47fc584131901baddb2752e949ebcd
tree1041b1c8de977f10bd582e11a98342d2a512c980
parente7c5a571a8d6a266aee9ca3f3f26e5afe3717eca
tools/testing/nvdimm: allow custom error code injection

Given that libnvdimm driver stack takes specific actions on DIMM command
error codes like -EACCES, provide a facility to inject custom failures.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
tools/testing/nvdimm/test/nfit.c