From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sfi-mx-4.v28.ch3.sourceforge.com ([172.29.28.124] helo=mx.sourceforge.net) by 335xhf1.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1MWJzt-00059g-Vi for ltp-list@lists.sourceforge.net; Thu, 30 Jul 2009 00:59:53 +0000 Received: from [222.73.24.84] (helo=song.cn.fujitsu.com) by 1b2kzd1.ch3.sourceforge.com with esmtp (Exim 4.69) id 1MWJzn-0007rX-AJ for ltp-list@lists.sourceforge.net; Thu, 30 Jul 2009 00:59:53 +0000 Received: from tang.cn.fujitsu.com (tang.cn.fujitsu.com [10.167.250.3]) by song.cn.fujitsu.com (Postfix) with ESMTP id 2073C170141 for ; Thu, 30 Jul 2009 08:59:38 +0800 (CST) Received: from fnst.cn.fujitsu.com (localhost.localdomain [127.0.0.1]) by tang.cn.fujitsu.com (8.13.1/8.13.1) with ESMTP id n6U10FZr022435 for ; Thu, 30 Jul 2009 09:00:15 +0800 Received: from [127.0.0.1] (unknown [10.167.141.67]) by fnst.cn.fujitsu.com (Postfix) with ESMTP id 1702AD407E for ; Thu, 30 Jul 2009 09:01:18 +0800 (CST) Message-ID: <4A70F0BF.50006@cn.fujitsu.com> Date: Thu, 30 Jul 2009 09:00:47 +0800 From: Wang Yong MIME-Version: 1.0 Subject: [LTP] [PATCH] Fix failure of the utimensat01 test List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-list-bounces@lists.sourceforge.net To: LTP The error handling for "RW" opt of run_test brought about error results. This patch fixed that. Signed-off-by: WangYong --- a/testcases/kernel/syscalls/utimensat/utimensat_tests.sh 2009-07-28 16:23:39.000000000 +0800 +++ b/testcases/kernel/syscalls/utimensat/utimensat_tests.sh 2009-07-28 15:44:13.000000000 +0800 @@ -260,22 +260,22 @@ echo "Testing read-only file, owned by s echo echo "***** Testing times==NULL case *****" -run_test "" 400 "" "" SUCCESS y y +run_test -W "" 400 "" "" SUCCESS y y echo "***** Testing times=={ UTIME_NOW, UTIME_NOW } case *****" -run_test "" 400 "" "0 n 0 n" SUCCESS y y +run_test -W "" 400 "" "0 n 0 n" SUCCESS y y echo "***** Testing times=={ UTIME_OMIT, UTIME_OMIT } case *****" -run_test "" 400 "" "0 o 0 o" SUCCESS n n +run_test -W "" 400 "" "0 o 0 o" SUCCESS n n echo "***** Testing times=={ UTIME_NOW, UTIME_OMIT } case *****" -run_test "" 400 "" "0 n 0 o" SUCCESS y n +run_test -W "" 400 "" "0 n 0 o" SUCCESS y n echo "***** Testing times=={ UTIME_OMIT, UTIME_NOW } case *****" -run_test "" 400 "" "0 o 0 n" SUCCESS n y +run_test -W "" 400 "" "0 o 0 n" SUCCESS n y echo "***** Testing times=={ x, y } case *****" -run_test "" 400 "" "1 1 1 1" SUCCESS y y +run_test -W "" 400 "" "1 1 1 1" SUCCESS y y echo "============================================================" @@ -284,22 +284,22 @@ echo "Testing read-only file, not owned echo echo "***** Testing times==NULL case *****" -run_test root 400 "" "" EACCES +run_test -RW root 400 "" "" EACCES echo "***** Testing times=={ UTIME_NOW, UTIME_NOW } case *****" -run_test root 400 "" "0 n 0 n" EACCES +run_test -RW root 400 "" "0 n 0 n" EACCES echo "***** Testing times=={ UTIME_OMIT, UTIME_OMIT } case *****" -run_test root 400 "" "0 o 0 o" SUCCESS n n +run_test -RW root 400 "" "0 o 0 o" SUCCESS n n echo "***** Testing times=={ UTIME_NOW, UTIME_OMIT } case *****" -run_test root 400 "" "0 n 0 o" EPERM +run_test -RW root 400 "" "0 n 0 o" EPERM echo "***** Testing times=={ UTIME_OMIT, UTIME_NOW } case *****" -run_test root 400 "" "0 o 0 n" EPERM +run_test -RW root 400 "" "0 o 0 n" EPERM echo "***** Testing times=={ x, y } case *****" -run_test root 400 "" "1 1 1 1" EPERM +run_test -RW root 400 "" "1 1 1 1" EPERM echo "============================================================" ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list