From e0e07fac66c8175da9e6c723d58b482beba53a0f Mon Sep 17 00:00:00 2001 From: Swapnil Pimpale Date: Thu, 24 Apr 2014 23:12:08 +0530 Subject: [PATCH] LU-4713 test: Add a check to test_237 in sanity.sh This patch adds a check to test_237 in sanity.sh to check whether write to the file succeeded or not. Test-Parameters: clientdistro=sles11sp3 testlist=sanity envdefinitions=ONLY=237 Signed-off-by: Swapnil Pimpale Change-Id: Id81f9bf01ead516c3b0e7f247ff71550d4a9847e Reviewed-on: http://review.whamcloud.com/10088 Tested-by: Jenkins Reviewed-by: Bob Glossman Tested-by: Maloo Reviewed-by: Andreas Dilger --- lustre/tests/sanity.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 4df82e1..050dde2 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -12667,7 +12667,8 @@ run_test 236 "Layout swap on open unlinked file" # The new system calls are supported in glibc >= 2.14. test_237() { - echo "Test file_handle syscalls" > $DIR/$tfile + echo "Test file_handle syscalls" > $DIR/$tfile || + error "write failed" check_fhandle_syscalls $DIR/$tfile || error "check_fhandle_syscalls failed" } -- 1.8.3.1