[PATCH] generic/019: Silence possible kill failure

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



When the filesystem is force-killed in generic/019 and fsstress is compiled
with DEBUG then it's possible for check_cwd() to fail. In this case fsstress
would just die and invoking kill on its pid would produce an error to the
output file:

	+./tests/generic/019: line 157: kill: (32750) - No such process

Fix this possibility by ignoring the result of the output command,
this won't affect the test coverage.

Signed-off-by: Nikolay Borisov <nborisov@xxxxxxxx>
---
 tests/generic/019 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/generic/019 b/tests/generic/019
index 84e62f5c..3b24c87c 100755
--- a/tests/generic/019
+++ b/tests/generic/019
@@ -154,7 +154,7 @@ _workout()
 	    >> $seqres.full 2>&1 && \
 	    _fail "failed: still able to perform integrity fsync on $SCRATCH_MNT"
 
-	kill $fs_pid
+	kill $fs_pid &> /dev/null
 	wait $fs_pid
 	wait $fio_pid
 
-- 
2.12.3

--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux