source: rtems/testsuites/psxtests/psxfile01/psxfile01.scn @ 3f42281e

4.11
Last change on this file since 3f42281e was 3f42281e, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 1, 2010 at 9:15:07 PM

2010-07-01 Joel Sherrill <joel.sherrilL@…>

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