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:
parent
e612379614
commit
edd770ebfb
|
@ -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))
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue