Skip to contentSkip to conversation

fchown/fchown04.c: add EROFS

PATCH New zenglg.jy 1 participant 1 message Nov 22, 2013

lore
Share & tools
lore

zenglg.jy

author
#0 lore raw

PATCH 1/1 fchown/fchown04.c: add EROFS

Add case for fchown(2) with EROFS error.

---
 runtest/ltplite                             |  2 +-
 runtest/stress.part3                        |  2 +-
 runtest/syscalls                            |  4 +-
 testcases/kernel/syscalls/fchown/fchown04.c | 87 ++++++++++++++++++++++++++++-
 4 files changed, 90 insertions(+), 5 deletions(-)
runtest/ltplite +1 -1
index 2382dec..eb776e8 100644
@@ -189,7 +189,7 @@ fchmod07 fchmod07
 fchown01 fchown01
 fchown02 fchown02
 fchown03 cp -p $LTPROOT/testcases/bin/change_owner $TMPDIR;fchown03
-fchown04 export change_owner=$LTPROOT/testcases/bin/change_owner;fchown04
+fchown04 export change_owner=$LTPROOT/testcases/bin/change_owner;fchown04 -D DEVICE -T DEVICE_FS_TYPE
 fchown05 fchown05
 
 fcntl01 fcntl01
runtest/stress.part3 +1 -1
index 16247e9..915591e 100644
@@ -130,7 +130,7 @@ fchmod07 fchmod07
 fchown01 fchown01
 fchown02 fchown02
 fchown03 cp -p $LTPROOT/testcases/bin/change_owner $TMPDIR;fchown03
-fchown04 export change_owner=$LTPROOT/testcases/bin/change_owner;fchown04
+fchown04 export change_owner=$LTPROOT/testcases/bin/change_owner;fchown04 -D DEVICE -T DEVICE_FS_TYPE
 fchown05 fchown05
 
 fcntl01 fcntl01
runtest/syscalls +2 -2
index fa01ff7..a121e5c 100644
@@ -184,8 +184,8 @@ fchown02 fchown02
 fchown02_16 fchown02_16
 fchown03 fchown03
 fchown03_16 fchown03_16
-fchown04 fchown04
-fchown04_16 fchown04_16
+fchown04 fchown04 -D DEVICE -T DEVICE_FS_TYPE
+fchown04_16 fchown04_16 -D DEVICE -T DEVICE_FS_TYPE
 fchown05 fchown05
 fchown05_16 fchown05_16
 
testcases/kernel/syscalls/fchown/fchown04.c +86 -1

138 lines not on this page · raw message

Signature · 15 lines
1.8.2.1




------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list