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

4.115
Last change on this file since 3f42281e was 3f42281e, checked in by Joel Sherrill <joel.sherrill@…>, on 07/01/10 at 21:15:07

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
RevLine 
[3f42281e]1sparc-rtems4.11-run is /opt/rtems-4.11/bin/sparc-rtems4.11-run
[c2f9b97]2
3
4*** FILE TEST 1 ***
5*************** Dump of Entire IMFS ***************
6/
[9060699]7....dev/
8........console (device 0, 0)
[3f42281e]9........console_b (device 0, 1)
[c2f9b97]10***************       End of Dump        ***************
11stat of /dev/console
[3f42281e]12....st_dev     (0xfffe:0x0)
[78edd44]13....st_ino     3  may vary by small amount
[514a3fe]14....mode  = 00020755
[9060699]15....nlink = 1
16....uid = 0
17....gid = 0
[1fbd283c]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
[514a3fe]21....st_blksize 0
22....st_blocks  0
[c2f9b97]23
24mkdir /dev/tty
25
26mkdir /usr
27mkdir /etc
28mkdir /tmp
29mkdir /tmp/..
30mkdir /tmp/
31mkdir /j/j1
32mkdir tmp
33
34rmdir /usr
[912f74ae]35rmdir /dev
36rmdir /fred
37mknod /dev/test_console
38mknod /dev/tty/S3
39mknod /etc/passwd
40mkdir /tmp/my_dir
41mkfifo /c/my_dir
[c2f9b97]42mkdir /etc/passwd/j
43open /tmp/joel - should fail with ENOENT
44open /tmp/j
45open returned file descriptor 3
46close /tmp/j
[912f74ae]47close /tmp/j again
[c2f9b97]48unlink /tmp/j
[912f74ae]49unlink /tmp
50create and close /tmp/tom
51Attempt to recreate /tmp/tom
52create /tmp/john
53tcdrain /tmp/john
54mknod /tmp/joel
[c2f9b97]55(0)the first write!!!
56
[514a3fe]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
[c2f9b97]73(10)the first write!!!
74
[514a3fe]75stat( /tmp/joel ) returned
[3f42281e]76....st_dev     (0xfffe:0x0)
77....st_ino     13  may vary by small amount
[9060699]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
[514a3fe]85....st_blksize 0
86....st_blocks  0
[912f74ae]87unlink /tmp/joel
88unlink /tmp/joel
89mknod /tmp/joel
[c2f9b97]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
[514a3fe]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
[3f42281e]109....st_dev     (0xfffe:0x0)
110....st_ino     14  may vary by small amount
[9060699]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
[514a3fe]118....st_blksize 0
119....st_blocks  0
[c2f9b97]120stat of /tmp/j
121stat(/tmp/j) returned -1 (errno=2)
[3f42281e]122....st_dev     (0xfffe:0x0)
[78edd44]123....st_ino     3  may vary by small amount
[514a3fe]124....mode  = 00020755
[9060699]125....nlink = 1
126....uid = 0
127....gid = 0
[1fbd283c]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
[514a3fe]131....st_blksize 0
132....st_blocks  0
[c2f9b97]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
[3f42281e]140....st_dev     (0xfffe:0x0)
141....st_ino     15  may vary by small amount
[514a3fe]142....mode  = 00100644
[9060699]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
[514a3fe]149....st_blksize 0
150....st_blocks  0
[c2f9b97]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
[3f42281e]156....st_dev     (0xfffe:0x0)
157....st_ino     15  may vary by small amount
[514a3fe]158....mode  = 00100644
[9060699]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
[514a3fe]165....st_blksize 0
166....st_blocks  0
[c2f9b97]167*************** Dump of Entire IMFS ***************
168/
[9060699]169....dev/
170........console (device 0, 0)
[3f42281e]171........console_b (device 0, 1)
[9060699]172........tty/
[3f42281e]173............S3 (device 255, 128)
[9060699]174........test_console (device 0, 0)
175....etc/
[1fbd283c]176........passwd (file 0)
[9060699]177....tmp/
178........my_dir/
[1fbd283c]179........tom (file 0)
180........john (file 0)
[514a3fe]181........joel (file 533)
[1fbd283c]182........j (file 130)
[514a3fe]183....imfs/
184........hidden_on_mount/
[c2f9b97]185***************       End of Dump        ***************
186truncate /tmp/j to length of 40
[3f42281e]187....st_dev     (0xfffe:0x0)
188....st_ino     15  may vary by small amount
[514a3fe]189....mode  = 00100644
[9060699]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
[514a3fe]196....st_blksize 0
197....st_blocks  0
[c2f9b97]198*************** Dump of Entire IMFS ***************
199/
[9060699]200....dev/
201........console (device 0, 0)
[3f42281e]202........console_b (device 0, 1)
[9060699]203........tty/
[3f42281e]204............S3 (device 255, 128)
[9060699]205........test_console (device 0, 0)
206....etc/
[1fbd283c]207........passwd (file 0)
[9060699]208....tmp/
209........my_dir/
[1fbd283c]210........tom (file 0)
211........john (file 0)
212........j (file 40)
[514a3fe]213....imfs/
214........hidden_on_mount/
[c2f9b97]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/
[9060699]222....dev/
223........console (device 0, 0)
[3f42281e]224........console_b (device 0, 1)
[9060699]225........tty/
[3f42281e]226............S3 (device 255, 128)
[9060699]227........test_console (device 0, 0)
228....etc/
[1fbd283c]229........passwd (file 0)
[9060699]230....tmp/
231........my_dir/
[1fbd283c]232........tom (file 0)
233........john (file 0)
234........j (file 0)
[514a3fe]235....imfs/
236........hidden_on_mount/
[c2f9b97]237***************       End of Dump        ***************
[b2a1ea3]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
[912f74ae]245
[514a3fe]246*** END OF FILE TEST 1 ***
Note: See TracBrowser for help on using the repository browser.