]> git.baikalelectronics.ru Git - kernel.git/commit
tools/testing/nvdimm: make iset cookie predictable
authorDan Williams <dan.j.williams@intel.com>
Wed, 1 Mar 2017 08:03:37 +0000 (00:03 -0800)
committerDan Williams <dan.j.williams@intel.com>
Wed, 1 Mar 2017 08:09:51 +0000 (00:09 -0800)
commit9b957a9e495118a41e3800fecebaef8ffae08afd
treebb17d678dda8242047e3f88c50a66c9abc892bbf
parent4edd4903282d8ee3e0436d3a611edbd611c75f14
tools/testing/nvdimm: make iset cookie predictable

For testing changes to the iset cookie algorithm we need a value that is
constant from run-to-run.

Stop including dynamic data in the emulated region_offset values. Also,
pick values that sort in a different order depending on whether the
comparison is a memcmp() of two 8-byte arrays or subtraction of two
64-bit values.

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