From 862106ec8724c1dc7f58a743cdde543dfda171b0 Mon Sep 17 00:00:00 2001 From: grev Date: Wed, 21 Nov 2007 10:35:02 +0000 Subject: [PATCH] b=13974 i=Nathan test_43: change exec to multiop --- lustre/tests/sanity.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index ac0386f..6b2080f 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -1887,9 +1887,13 @@ run_test 42d "test complete truncate of file with cached dirty data" test_43() { cp -p /bin/ls $DIR/$tdir/$tfile - exec 9>> $DIR/$tdir/$tfile + multiop $DIR/$tdir/$tfile Ow_c & + pid=$! + # give multiop a chance to open + sleep 1 + $DIR/$tdir/$tfile && error || true - exec 9<&- + kill -USR1 $pid } run_test 43 "execution of file opened for write should return -ETXTBSY" -- 1.8.3.1