X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Ftests%2Fsanity.sh;h=5b5b0dd268bc83d38712390d4f9cf45f36b3b390;hp=4ef4b5368dc3475feeb107d528363c518135c832;hb=5bd85b467a4b6ef57d7a3c119296c9a317afc73b;hpb=8b8b7b3c4c1060e0a48be38ca7859d229a6dfca7 diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 4ef4b53..5b5b0dd 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -11460,6 +11460,22 @@ test_234() { } run_test 234 "xattr cache should not crash on ENOMEM" +test_235() { + [ $(lustre_version_code $SINGLEMDS) -lt $(version_code 2.4.52) ] && + skip "Need MDS version at least 2.4.52" && return + flock_deadlock $DIR/$tfile + local RC=$? + case $RC in + 0) + ;; + 124) error "process hangs on a deadlock" + ;; + *) error "error executing flock_deadlock $DIR/$tfile" + ;; + esac +} +run_test 235 "LU-1715: flock deadlock detection does not work properly" + # # tests that do cleanup/setup should be run at the end #