]> asedeno.scripts.mit.edu Git - linux.git/commit
tools/testing/nvdimm: Make DSM failure code injection an override
authorDan Williams <dan.j.williams@intel.com>
Thu, 14 Jun 2018 03:08:54 +0000 (20:08 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sat, 14 Jul 2018 17:27:00 +0000 (10:27 -0700)
commit39611e83a28c880881f4927d7bb2f5ea4ddf4526
tree3fc71bf4213f78710bd8cb516f38681cbef33a05
parent099b07a25fff6ee1b37f3ca7f4d2b53186326db0
tools/testing/nvdimm: Make DSM failure code injection an override

In order to emulate the behavior of the NVDIMM_FAMILY_INTEL DSMs
nfit_test needs the ability to execute the DSM and then override the
return code.

Split the current return code injection from get_dimm() and apply at
after the function has executed to override the return status.

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