Unify test case for error injection

We have two similiar to-be-injected "victim" programs but
it is a little bit redundant. Merge them into one. BTW,
add a new function to enable to choose if injecting a
error by hand.

Minor fix by Gong.

Signed-off-by: Wen Jin <wenx.jin@intel.com>
Signed-off-by: Chen, Gong <gong.chen@linux.intel.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
5 files changed