summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxfile01/psxfile01.scn
blob: 7d5f6d106ebc4121639d7ef38156a02d464f38ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
NOTE: If you get the following assertion, then your target does not
have enough memory in the heap used by malloc to allocate all the
files used during this test:

assertion "memory" failed: file "...../c/src/lib/libc/memfile.c", line 340

*** FILE TEST 1 ***
*************** Dump of Entire IMFS ***************
/
....dev/
........console (device 0, 0)
***************       End of Dump        ***************
stat of /dev/console
....st_dev     (0x0:0x0)
....st_ino     3  may vary by small amount
....mode  = 00020771
....nlink = 1
....uid = 0
....gid = 0
....atime = Fri Jan 01 00:00:00 1988
....mtime = Fri Jan 01 00:00:00 1988
....ctime = Fri Jan 01 00:00:00 1988

mkdir /dev/tty

mkdir /usr
mkdir /etc
mkdir /tmp
mkdir /tmp/..
mkdir /tmp/
mkdir /j/j1
mkdir tmp

rmdir /usr
rmdir /dev
rmdir /fred
mknod /dev/test_console
mknod /dev/tty/S3
mknod /etc/passwd
mkdir /tmp/my_dir
mkfifo /c/my_dir
mkdir /etc/passwd/j
open /tmp/joel - should fail with ENOENT
open /tmp/j
open returned file descriptor 3
close /tmp/j
close /tmp/j again
unlink /tmp/j
unlink /tmp
create and close /tmp/tom
Attempt to recreate /tmp/tom
create /tmp/john
tcdrain /tmp/john
mknod /tmp/joel
(0)the first write!!!

(10)the first write!!!

stat( /tmp/joel ) returned
....st_dev     (0x0:0x0)
....st_ino     10  may vary by small amount
....mode  = 00100700
....nlink = 1
....uid = 0
....gid = 0
....atime = Sat Dec 31 09:00:00 1988
....mtime = Sat Dec 31 09:00:00 1988
....ctime = Sat Dec 31 09:00:00 1988
unlink /tmp/joel
unlink /tmp/joel
mknod /tmp/joel
(514)the first write!!!

(513)the first write!!!

(24)the first write!!!

(2)the first write!!!

(1)the first write!!!

(0)the first write!!!

(0)rst write!!!

(513)the first write!!!

(139743)
stat( /tmp/joel ) returned
....st_dev     (0x0:0x0)
....st_ino     11  may vary by small amount
....mode  = 00100700
....nlink = 1
....uid = 0
....gid = 0
....atime = Sat Dec 31 09:00:00 1988
....mtime = Sat Dec 31 09:00:00 1988
....ctime = Sat Dec 31 09:00:00 1988
stat of /tmp/j
stat(/tmp/j) returned -1 (errno=2)
....st_dev     (0x0:0x0)
....st_ino     3  may vary by small amount
....mode  = 00020771
....nlink = 1
....uid = 0
....gid = 0
....atime = Fri Jan 01 00:00:00 1988
....mtime = Fri Jan 01 00:00:00 1988
....ctime = Fri Jan 01 00:00:00 1988
fopen of /tmp/j
fprintf to /tmp/j
(1) 26 characters written to the file
(2) 26 characters written to the file
(3) 26 characters written to the file
(4) 26 characters written to the file
(5) 26 characters written to the file
....st_dev     (0x0:0x0)
....st_ino     12  may vary by small amount
....mode  = 00100660
....nlink = 1
....uid = 0
....gid = 0
....atime = Sat Dec 31 09:00:00 1988
....mtime = Sat Dec 31 09:00:00 1988
....ctime = Sat Dec 31 09:00:00 1988
This is call 1 to fprintf
This is call 2 to fprintf
This is call 3 to fprintf
This is call 4 to fprintf
This is call 5 to fprintf
....st_dev     (0x0:0x0)
....st_ino     12  may vary by small amount
....mode  = 00100660
....nlink = 1
....uid = 0
....gid = 0
....atime = Sat Dec 31 09:00:01 1988
....mtime = Sat Dec 31 09:00:00 1988
....ctime = Sat Dec 31 09:00:00 1988
*************** Dump of Entire IMFS ***************
/
....dev/
........console (device 0, 0)
........tty/
............S3 (device 255, 128)
........test_console (device 0, 0)
....etc/
........passwd (file 0 0x0 0x0 0x0)
....tmp/
........my_dir/
........tom (file 0 0x0 0x0 0x0)
........john (file 0 0x0 0x0 0x0)
........joel (file 279487 0x7d58d8 0x7d5388 0x7cfe38)
........j (file 130 0x77a338 0x0 0x0)
***************       End of Dump        ***************
truncate /tmp/j to length of 40
....st_dev     (0x0:0x0)
....st_ino     12  may vary by small amount
....mode  = 00100660
....nlink = 1
....uid = 0
....gid = 0
....atime = Sat Dec 31 09:00:02 1988
....mtime = Sat Dec 31 09:00:00 1988
....ctime = Sat Dec 31 09:00:00 1988
*************** Dump of Entire IMFS ***************
/
....dev/
........console (device 0, 0)
........tty/
............S3 (device 255, 128)
........test_console (device 0, 0)
....etc/
........passwd (file 0 0x0 0x0 0x0)
....tmp/
........my_dir/
........tom (file 0 0x0 0x0 0x0)
........john (file 0 0x0 0x0 0x0)
........j (file 40 0x77a338 0x0 0x0)
***************       End of Dump        ***************
truncate /tmp/j to length of 0
truncate /tmp to length of 0 should fail with EISDIR

21: Is a directory
*************** Dump of Entire IMFS ***************
/
....dev/
........console (device 0, 0)
........tty/
............S3 (device 255, 128)
........test_console (device 0, 0)
....etc/
........passwd (file 0 0x0 0x0 0x0)
....tmp/
........my_dir/
........tom (file 0 0x0 0x0 0x0)
........john (file 0 0x0 0x0 0x0)
........j (file 0 0x77a338 0x0 0x0)
***************       End of Dump        ***************
*** END OF FILE TEST 1 ***