Refactors the regression test.

This commit is contained in:
Andrea Mazzoleni 2014-01-15 19:57:02 +01:00
parent 0f6867ba4e
commit 91c3de2182
6 changed files with 263 additions and 236 deletions

View file

@ -279,6 +279,10 @@ int raid_test_par(int mode, int nd, size_t size)
if (!v)
return -1;
/* check memory */
if (raid_mtest_vector(nv, size, v) != 0)
return -1;
/* fill with random */
raid_mrand_vector(nv, size, v);