source: rtems/testsuites/psxtests/psxfile01/psxfile01.scn @ 0895bdb

4.104.114.84.9
Last change on this file since 0895bdb was 0895bdb, checked in by Joel Sherrill <joel.sherrill@…>, on Nov 23, 1998 at 6:57:48 PM

Added tests in support of the file system infrastructure.

  • Property mode set to 100644
File size: 3.9 KB
Line 
1
2
3*** FILE TEST 1 ***
4*************** Dump of Entire IMFS ***************
5/
6    dev/
7        console (device 0, 0)
8***************       End of Dump        ***************
9stat of /dev/console
10    st_dev     (0x0:0x0)
11    st_ino     3
12    mode  = 00020771
13    nlink = 1
14    uid = 0
15    gid = 0
16    atime = Fri Jan 01 00:00:00 1988
17    mtime = Fri Jan 01 00:00:00 1988
18    ctime = Fri Jan 01 00:00:00 1988
19
20mkdir /dev/tty
21
22mkdir /usr
23mkdir /etc
24mkdir /tmp
25mkdir /tmp/..
26mkdir /tmp/
27mkdir /j/j1
28mkdir tmp
29
30rmdir /usr
31mkdir /etc/passwd/j
32open /tmp/joel - should fail with ENOENT
33open /tmp/j
34open returned file descriptor 3
35close /tmp/j
36unlink /tmp/j
37(0)the first write!!!
38
39(10)the first write!!!
40
41stat( /tmp/joel ) returned     st_dev     (0x1a7f8:0x3e86f0)
42    st_ino     d
43    mode  = 00100700
44    nlink = 1
45    uid = 0
46    gid = 0
47    atime = Sat Dec 31 09:00:00 1988
48    mtime = Sat Dec 31 09:00:00 1988
49    ctime = Sat Dec 31 09:00:00 1988
50(514)the first write!!!
51
52(513)the first write!!!
53
54(24)the first write!!!
55
56(2)the first write!!!
57
58(1)the first write!!!
59
60(0)the first write!!!
61
62(0)rst write!!!
63
64(513)the first write!!!
65
66(139743)
67stat( /tmp/joel ) returned     st_dev     (0x1a7f8:0x3e86f0)
68    st_ino     e
69    mode  = 00100700
70    nlink = 1
71    uid = 0
72    gid = 0
73    atime = Sat Dec 31 09:00:00 1988
74    mtime = Sat Dec 31 09:00:00 1988
75    ctime = Sat Dec 31 09:00:00 1988
76stat of /tmp/j
77stat(/tmp/j) returned -1 (errno=2)
78    st_dev     (0x0:0x0)
79    st_ino     3
80    mode  = 00020771
81    nlink = 1
82    uid = 0
83    gid = 0
84    atime = Fri Jan 01 00:00:00 1988
85    mtime = Fri Jan 01 00:00:00 1988
86    ctime = Fri Jan 01 00:00:00 1988
87fopen of /tmp/j
88fprintf to /tmp/j
89(1) 26 characters written to the file
90(2) 26 characters written to the file
91(3) 26 characters written to the file
92(4) 26 characters written to the file
93(5) 26 characters written to the file
94    st_dev     (0x0:0x0)
95    st_ino     f
96    mode  = 00100660
97    nlink = 1
98    uid = 0
99    gid = 0
100    atime = Sat Dec 31 09:00:00 1988
101    mtime = Sat Dec 31 09:00:00 1988
102    ctime = Sat Dec 31 09:00:00 1988
103This is call 1 to fprintf
104This is call 2 to fprintf
105This is call 3 to fprintf
106This is call 4 to fprintf
107This is call 5 to fprintf
108    st_dev     (0x0:0x0)
109    st_ino     f
110    mode  = 00100660
111    nlink = 1
112    uid = 0
113    gid = 0
114    atime = Sat Dec 31 09:00:01 1988
115    mtime = Sat Dec 31 09:00:00 1988
116    ctime = Sat Dec 31 09:00:00 1988
117*************** Dump of Entire IMFS ***************
118/
119    dev/
120        console (device 0, 0)
121        tty/
122            S3 (device 255, 128)
123        test_console (device 0, 0)
124    etc/
125        passwd (file 0 0x0 0x0 0x0)
126    tmp/
127        joel (file 279487 0x3d5ac0 0x3d5570 0x3d5020)
128        j (file 130 0x37f530 0x0 0x0)
129***************       End of Dump        ***************
130truncate /tmp/j to length of 40
131    st_dev     (0x0:0x0)
132    st_ino     f
133    mode  = 00100660
134    nlink = 1
135    uid = 0
136    gid = 0
137    atime = Sat Dec 31 09:00:02 1988
138    mtime = Sat Dec 31 09:00:00 1988
139    ctime = Sat Dec 31 09:00:00 1988
140*************** Dump of Entire IMFS ***************
141/
142    dev/
143        console (device 0, 0)
144        tty/
145            S3 (device 255, 128)
146        test_console (device 0, 0)
147    etc/
148        passwd (file 0 0x0 0x0 0x0)
149    tmp/
150        j (file 40 0x37f530 0x0 0x0)
151***************       End of Dump        ***************
152truncate /tmp/j to length of 0
153truncate /tmp to length of 0 should fail with EISDIR
154
15521: Is a directory
156*************** Dump of Entire IMFS ***************
157/
158    dev/
159        console (device 0, 0)
160        tty/
161            S3 (device 255, 128)
162        test_console (device 0, 0)
163    etc/
164        passwd (file 0 0x0 0x0 0x0)
165    tmp/
166        j (file 0 0x37f530 0x0 0x0)
167***************       End of Dump        ***************
168*** END OF FILE TEST 1 ***
Note: See TracBrowser for help on using the repository browser.