From edd770ebfb8e389474be41070fc72a066bbcdaa4 Mon Sep 17 00:00:00 2001 From: Jinshan Xiong Date: Tue, 12 Apr 2016 15:27:47 -0700 Subject: [PATCH] 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 Signed-off-by: Brian Behlendorf Closes #4516 --- .../tests/functional/replacement/replacement_001_pos.ksh | 3 --- .../tests/functional/replacement/replacement_002_pos.ksh | 3 --- .../tests/functional/replacement/replacement_003_pos.ksh | 3 --- 3 files changed, 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 1d66ff7c6e62..fcc575f832aa 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 37903961d712..aae6d78a712a 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 355326454922..1a7a7d87b396 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))