source: rtems/testsuites/psxtests/psxfile01/psxfile01.scn @ 514a3fe

4.104.115
Last change on this file since 514a3fe was 514a3fe, checked in by Joel Sherrill <joel.sherrill@…>, on 05/17/10 at 17:56:13

2010-05-17 Bharath Suri <bharath.s.jois@…>

  • psxfile01/test.c, psxfile01/psxfile01.scn: This file now exercises the _rename_r in libcsupport. For now, it also provides two fsmount_me_h handlers to enable certain error checking paths
  • Property mode set to 100644
File size: 6.1 KB
Line 
1Could not open '/dev/kqemu' - QEMU acceleration layer not activated: No such file or directory
2Initialized console on port COM1 9600-8-N-1
3
4
5
6*** FILE TEST 1 ***
7*************** Dump of Entire IMFS ***************
8/
9....dev/
10........console (device 0, 0)
11***************       End of Dump        ***************
12stat of /dev/console
13....st_dev     (0x0:0x0)
14....st_ino     3  may vary by small amount
15....mode  = 00020755
16....nlink = 1
17....uid = 0
18....gid = 0
19....atime = Fri Jan  1 00:00:00 1988
20....mtime = Fri Jan  1 00:00:00 1988
21....ctime = Fri Jan  1 00:00:00 1988
22....st_blksize 0
23....st_blocks  0
24
25mkdir /dev/tty
26
27mkdir /usr
28mkdir /etc
29mkdir /tmp
30mkdir /tmp/..
31mkdir /tmp/
32mkdir /j/j1
33mkdir tmp
34
35rmdir /usr
36rmdir /dev
37rmdir /fred
38mknod /dev/test_console
39mknod /dev/tty/S3
40mknod /etc/passwd
41mkdir /tmp/my_dir
42mkfifo /c/my_dir
43mkdir /etc/passwd/j
44open /tmp/joel - should fail with ENOENT
45open /tmp/j
46open returned file descriptor 3
47close /tmp/j
48close /tmp/j again
49unlink /tmp/j
50unlink /tmp
51create and close /tmp/tom
52Attempt to recreate /tmp/tom
53create /tmp/john
54tcdrain /tmp/john
55mknod /tmp/joel
56(0)the first write!!!
57
58rename /tmp/joel to /tmp/drjoel
59rename /tmp/drjoel to /tmp/joel
60rename /tmp/drjoel to /tmp/joel - Should result in an error since old path is not valid
61rename /tmp/joel to /tmp/drjoel/joel - Should result in an error since new path is not valid
62changing dir to /tmp
63rename joel to drjoel
64rename drjoel to joel
65creating directory /imfs
66creating directory /imfs/hidden_on_mount
67mounting filesystem with IMFS_ops at /imfs
68creating directory /imfs/test (on newly mounted filesystem)
69attempt to rename directory joel to /imfs/test/joel - should fail with EXDEV
70changing dir to /
71attempt to rename across filesystem, with old path having a parent node
72attempt to rename tmp/joel to /imfs/test/joel
73Unmounting /imfs
74Mounting filesystem @ /imfs with no support for evalformake
75change directory to /imfs
76exercise _rename_r, with target on /imfs - expected ENOTSUP
77attempt to rename /tmp/joel to joel
78change directory to /
79Mounting filesystem @ /imfs with no support for rename
80creating directory /imfs/test
81creating directory /imfs/test/old_dir
82changing to /
83attempt to rename imfs/old_dir to imfs/new_dir
84unmounting /imfs
85End of _rename_r tests
86(10)the first write!!!
87
88stat( /tmp/joel ) returned
89....st_dev     (0x0:0x0)
90....st_ino     12  may vary by small amount
91....mode  = 00100700
92....nlink = 1
93....uid = 0
94....gid = 0
95....atime = Sat Dec 31 09:00:00 1988
96....mtime = Sat Dec 31 09:00:00 1988
97....ctime = Sat Dec 31 09:00:00 1988
98....st_blksize 0
99....st_blocks  0
100unlink /tmp/joel
101unlink /tmp/joel
102mknod /tmp/joel
103(514)the first write!!!
104
105(513)the first write!!!
106
107(24)the first write!!!
108
109(2)the first write!!!
110
111(1)the first write!!!
112
113(0)the first write!!!
114
115(0)rst write!!!
116
117(513)the first write!!!
118
119Skipping maximum file size test since max_size is 4329344 bytes
120That is likely to be bigger than the available RAM on many targets.
121stat( /tmp/joel ) returned
122....st_dev     (0x0:0x0)
123....st_ino     13  may vary by small amount
124....mode  = 00100700
125....nlink = 1
126....uid = 0
127....gid = 0
128....atime = Sat Dec 31 09:00:00 1988
129....mtime = Sat Dec 31 09:00:00 1988
130....ctime = Sat Dec 31 09:00:00 1988
131....st_blksize 0
132....st_blocks  0
133stat of /tmp/j
134stat(/tmp/j) returned -1 (errno=2)
135....st_dev     (0x0:0x0)
136....st_ino     3  may vary by small amount
137....mode  = 00020755
138....nlink = 1
139....uid = 0
140....gid = 0
141....atime = Fri Jan  1 00:00:00 1988
142....mtime = Fri Jan  1 00:00:00 1988
143....ctime = Fri Jan  1 00:00:00 1988
144....st_blksize 0
145....st_blocks  0
146fopen of /tmp/j
147fprintf to /tmp/j
148(1) 26 characters written to the file
149(2) 26 characters written to the file
150(3) 26 characters written to the file
151(4) 26 characters written to the file
152(5) 26 characters written to the file
153....st_dev     (0x0:0x0)
154....st_ino     14  may vary by small amount
155....mode  = 00100644
156....nlink = 1
157....uid = 0
158....gid = 0
159....atime = Sat Dec 31 09:00:00 1988
160....mtime = Sat Dec 31 09:00:00 1988
161....ctime = Sat Dec 31 09:00:00 1988
162....st_blksize 0
163....st_blocks  0
164This is call 1 to fprintf
165This is call 2 to fprintf
166This is call 3 to fprintf
167This is call 4 to fprintf
168This is call 5 to fprintf
169....st_dev     (0x0:0x0)
170....st_ino     14  may vary by small amount
171....mode  = 00100644
172....nlink = 1
173....uid = 0
174....gid = 0
175....atime = Sat Dec 31 09:00:01 1988
176....mtime = Sat Dec 31 09:00:00 1988
177....ctime = Sat Dec 31 09:00:00 1988
178....st_blksize 0
179....st_blocks  0
180*************** Dump of Entire IMFS ***************
181/
182....dev/
183........console (device 0, 0)
184........tty/
185............S3 (device 128, 255)
186........test_console (device 0, 0)
187....etc/
188........passwd (file 0)
189....tmp/
190........my_dir/
191........tom (file 0)
192........john (file 0)
193........joel (file 533)
194........j (file 130)
195....imfs/
196........hidden_on_mount/
197***************       End of Dump        ***************
198truncate /tmp/j to length of 40
199....st_dev     (0x0:0x0)
200....st_ino     14  may vary by small amount
201....mode  = 00100644
202....nlink = 1
203....uid = 0
204....gid = 0
205....atime = Sat Dec 31 09:00:02 1988
206....mtime = Sat Dec 31 09:00:00 1988
207....ctime = Sat Dec 31 09:00:00 1988
208....st_blksize 0
209....st_blocks  0
210*************** Dump of Entire IMFS ***************
211/
212....dev/
213........console (device 0, 0)
214........tty/
215............S3 (device 128, 255)
216........test_console (device 0, 0)
217....etc/
218........passwd (file 0)
219....tmp/
220........my_dir/
221........tom (file 0)
222........john (file 0)
223........j (file 40)
224....imfs/
225........hidden_on_mount/
226***************       End of Dump        ***************
227truncate /tmp/j to length of 0
228truncate /tmp to length of 0 should fail with EISDIR
229
23021: Is a directory
231*************** Dump of Entire IMFS ***************
232/
233....dev/
234........console (device 0, 0)
235........tty/
236............S3 (device 128, 255)
237........test_console (device 0, 0)
238....etc/
239........passwd (file 0)
240....tmp/
241........my_dir/
242........tom (file 0)
243........john (file 0)
244........j (file 0)
245....imfs/
246........hidden_on_mount/
247***************       End of Dump        ***************
248Writing First File
249Writing Second File
250(0)this is a test line
251this is a test line
252
253(0)this is a test line
254this is a test line
255
256*** END OF FILE TEST 1 ***
Note: See TracBrowser for help on using the repository browser.