X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Ftests%2Fsanity.sh;h=45cc1159bd0c51ce89a45559323ae48259efb79c;hp=19963469d0b67981052e8c98e9453fe0b1e7adfd;hb=c64855fca1504bddcb0fc7ad7316d8d6b20a9c6f;hpb=6d775021473e53b623cd78f35a4d51e67136918a diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 1996346..45cc115 100755 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -4159,6 +4159,8 @@ test_43a() { cp -p $(which sleep) $DIR/$tdir/sleep || error "can't copy" $DIR/$tdir/sleep 60 & SLEEP_PID=$! + # Make sure exec of $tdir/sleep wins race with truncate + sleep 1 $MULTIOP $DIR/$tdir/sleep Oc && error "expected error, got success" kill $SLEEP_PID } @@ -4171,6 +4173,8 @@ test_43b() { cp -p $(which sleep) $DIR/$tdir/sleep || error "can't copy" $DIR/$tdir/sleep 60 & SLEEP_PID=$! + # Make sure exec of $tdir/sleep wins race with truncate + sleep 1 $TRUNCATE $DIR/$tdir/sleep 0 && error "expected error, got success" kill $SLEEP_PID }