On Mon, 2009-03-16 at 20:30 -0600, Fan He wrote:
> [Patch 1/1] Patch for the improvement of enabling the ftruncate04
> testcase
>
>
> -modified two scripts ftruncate.sh and ftruncate_64.sh to improvement
> this testcase.
>
>
>
> signed-off-by : fredrick he <[email protected]>
Thanks. Merged.
Regards--
Subrata
> -----------------------------------------------------------
> diff -pur
> ltp-full-20081031.orig//testcases/kernel/syscalls/ftruncate/ftruncate_64.sh
> ltp-full-20081031/testcases/kernel/syscalls/ftruncate/ftruncate_64.sh
> ---
> ltp-full-20081031.orig//testcases/kernel/syscalls/ftruncate/ftruncate_64.sh
> 2009-03-17
> 09:27:18.000000000 +0800
> +++
> ltp-full-20081031/testcases/kernel/syscalls/ftruncate/ftruncate_64.sh
> 2009-03-17 10:07:19.000000000 +0800
> @@ -2,8 +2,10 @@
>
> cd /tmp
> DEV=`df . |grep ^/|awk '{print $1}'`
> -mount ${DEV} -o remount,mand || exit 2
> +MOUNT_POINT=`df .| tail -1 |awk '{print $NF}'`
> +FLAG=`mount| grep ${DEV} | sed 's/.*(\(.*\)).*/\1/g'`
> +mount ${DEV} -o remount,mand || { echo "the ${DEV} remount,mand
> failed" ; exit 2;}
> ftruncate04_64
> ret=$?
> -mount ${DEV} -o remount || exit 2
> +mount -o remount,${FLAG} ${DEV} ${MOUNT_POINT} || { echo "the ${DEV}
> remount,${FLAG} failed" ; exit 2; }
> exit $ret
> diff -pur
> ltp-full-20081031.orig//testcases/kernel/syscalls/ftruncate/ftruncate.sh
> ltp-full-20081031/testcases/kernel/syscalls/ftruncate/ftruncate.sh
> ---
> ltp-full-20081031.orig//testcases/kernel/syscalls/ftruncate/ftruncate.sh
> 2009-03-17 09:27:18.000000000 +0800
> +++ ltp-full-20081031/testcases/kernel/syscalls/ftruncate/ftruncate.sh
> 2009-03-17 10:07:09.000000000 +0800
> @@ -2,8 +2,10 @@
>
> cd /tmp
> DEV=`df . |grep ^/|awk '{print $1}'`
> -mount ${DEV} -o remount,mand || exit 2
> +MOUNT_POINT=`df .| tail -1 |awk '{print $NF}'`
> +FLAG=`mount| grep ${DEV} | sed 's/.*(\(.*\)).*/\1/g'`
> +mount ${DEV} -o remount,mand || { echo "the ${DEV} remount,mand
> failed" ; exit 2;}
> ftruncate04
> ret=$?
> -mount ${DEV} -o remount || exit 2
> +mount -o remount,${FLAG} ${DEV} ${MOUNT_POINT} || { echo "the ${DEV}
> remount,${FLAG} failed" ; exit 2; }
> exit $ret
>
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> _______________________________________________ Ltp-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ltp-list
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list