remove sanity check in replacement test

In replacement test, it spawns a process to truncate a file background
and make sure that the process exists 1 second later. However, the
process may have finished its work and exited therefore it has the
chance to report a false alarm.

This patch just removed those sanity check.

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #4516
This commit is contained in:
Jinshan Xiong 2016-04-12 15:27:47 -07:00 committed by Brian Behlendorf
parent e612379614
commit edd770ebfb
3 changed files with 0 additions and 9 deletions

View File

@ -99,9 +99,6 @@ function replace_test
typeset pid=$!
$SLEEP 1
if ! $PS -p $pid > /dev/null 2>&1; then
log_fail "$FILE_TRUNC $options $TESTDIR/$TESTFILE.$i"
fi
child_pids="$child_pids $pid"
((i = i + 1))

View File

@ -99,9 +99,6 @@ function attach_test
typeset pid=$!
$SLEEP 1
if ! $PS -p $pid > /dev/null 2>&1; then
log_fail "$FILE_TRUNC $options $TESTDIR/$TESTFILE.$i"
fi
child_pids="$child_pids $pid"
((i = i + 1))

View File

@ -97,9 +97,6 @@ function detach_test
typeset pid=$!
$SLEEP 1
if ! $PS -p $pid > /dev/null 2>&1; then
log_fail "$FILE_TRUNC $options $TESTDIR/$TESTFILE.$i"
fi
child_pids="$child_pids $pid"
((i = i + 1))