Why do we need to add new routines for these conditions. Why can't handle these strings in array. For example you can define an array of strings for passed unexpectedly etc. and the pass the string to appropriate ksft_* interface instead of adding of these routines. Also it is hard to review the code this way.
I do like the direction though. Also please run get_maintainer.pl and cc everybody it suggests.
thanks,
-- Shuah
This commit re-organizes membarrier test, solving issues when testing--
LTS kernels. Now, the code:
- always run the same amount of tests (even on older kernels).
- allows each test to succeed, fail or be skipped independently.
- allows testing features even when explicitly unsupported (force=1).
- checks false positive/negative by checking ret code and errno.
- can be extended easily: to expand an array with commands.
Note: like this, the test is pretty close to the LTP membarrier basic
tests, and both can be maintained together.
Link: https://bugs.linaro.org/show_bug.cgi?id=3771
Link: http://lists.linux.it/pipermail/ltp/2018-October/009578.html
Signed-off-by: Rafael David Tinoco <rafael.tinoco@xxxxxxxxxx>
---