summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJinshan Xiong <[email protected]>2016-04-12 15:27:47 -0700
committerBrian Behlendorf <[email protected]>2016-04-13 11:30:12 -0700
commitedd770ebfb8e389474be41070fc72a066bbcdaa4 (patch)
tree4ea7f41ba0b29a695efb1de01be37d3acd5ad75a /tests
parente61237961448ab1fedf7975715fac753ccc7acef (diff)
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 <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #4516
Diffstat (limited to 'tests')
-rwxr-xr-xtests/zfs-tests/tests/functional/replacement/replacement_001_pos.ksh3
-rwxr-xr-xtests/zfs-tests/tests/functional/replacement/replacement_002_pos.ksh3
-rwxr-xr-xtests/zfs-tests/tests/functional/replacement/replacement_003_pos.ksh3
3 files changed, 0 insertions, 9 deletions
diff --git a/tests/zfs-tests/tests/functional/replacement/replacement_001_pos.ksh b/tests/zfs-tests/tests/functional/replacement/replacement_001_pos.ksh
index 1d66ff7c6..fcc575f83 100755
--- a/tests/zfs-tests/tests/functional/replacement/replacement_001_pos.ksh
+++ b/tests/zfs-tests/tests/functional/replacement/replacement_001_pos.ksh
@@ -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))
diff --git a/tests/zfs-tests/tests/functional/replacement/replacement_002_pos.ksh b/tests/zfs-tests/tests/functional/replacement/replacement_002_pos.ksh
index 37903961d..aae6d78a7 100755
--- a/tests/zfs-tests/tests/functional/replacement/replacement_002_pos.ksh
+++ b/tests/zfs-tests/tests/functional/replacement/replacement_002_pos.ksh
@@ -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))
diff --git a/tests/zfs-tests/tests/functional/replacement/replacement_003_pos.ksh b/tests/zfs-tests/tests/functional/replacement/replacement_003_pos.ksh
index 355326454..1a7a7d87b 100755
--- a/tests/zfs-tests/tests/functional/replacement/replacement_003_pos.ksh
+++ b/tests/zfs-tests/tests/functional/replacement/replacement_003_pos.ksh
@@ -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))