OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [tests/] [psxtests/] [psxfile01/] [psxfile01.scn] - Blame information for rev 389

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
NOTE: If you get the following assertion, then your target does not
2
have enough memory in the heap used by malloc to allocate all the
3
files used during this test:
4
 
5
assertion "memory" failed: file "...../c/src/lib/libc/memfile.c", line 340
6
 
7
*** FILE TEST 1 ***
8
*************** Dump of Entire IMFS ***************
9
/
10
....dev/
11
........console (device 0, 0)
12
***************       End of Dump        ***************
13
stat of /dev/console
14
....st_dev     (0x0:0x0)
15
....st_ino     3  may vary by small amount
16
....mode  = 00020771
17
....nlink = 1
18
....uid = 0
19
....gid = 0
20
....atime = Fri Jan 01 00:00:00 1988
21
....mtime = Fri Jan 01 00:00:00 1988
22
....ctime = Fri Jan 01 00:00:00 1988
23
 
24
mkdir /dev/tty
25
 
26
mkdir /usr
27
mkdir /etc
28
mkdir /tmp
29
mkdir /tmp/..
30
mkdir /tmp/
31
mkdir /j/j1
32
mkdir tmp
33
 
34
rmdir /usr
35
rmdir /dev
36
rmdir /fred
37
mknod /dev/test_console
38
mknod /dev/tty/S3
39
mknod /etc/passwd
40
mkdir /tmp/my_dir
41
mkfifo /c/my_dir
42
mkdir /etc/passwd/j
43
open /tmp/joel - should fail with ENOENT
44
open /tmp/j
45
open returned file descriptor 3
46
close /tmp/j
47
close /tmp/j again
48
unlink /tmp/j
49
unlink /tmp
50
create and close /tmp/tom
51
Attempt to recreate /tmp/tom
52
create /tmp/john
53
tcdrain /tmp/john
54
mknod /tmp/joel
55
(0)the first write!!!
56
 
57
(10)the first write!!!
58
 
59
stat( /tmp/joel ) returned
60
....st_dev     (0x0:0x0)
61
....st_ino     10  may vary by small amount
62
....mode  = 00100700
63
....nlink = 1
64
....uid = 0
65
....gid = 0
66
....atime = Sat Dec 31 09:00:00 1988
67
....mtime = Sat Dec 31 09:00:00 1988
68
....ctime = Sat Dec 31 09:00:00 1988
69
unlink /tmp/joel
70
unlink /tmp/joel
71
mknod /tmp/joel
72
(514)the first write!!!
73
 
74
(513)the first write!!!
75
 
76
(24)the first write!!!
77
 
78
(2)the first write!!!
79
 
80
(1)the first write!!!
81
 
82
(0)the first write!!!
83
 
84
(0)rst write!!!
85
 
86
(513)the first write!!!
87
 
88
(139743)
89
stat( /tmp/joel ) returned
90
....st_dev     (0x0:0x0)
91
....st_ino     11  may vary by small amount
92
....mode  = 00100700
93
....nlink = 1
94
....uid = 0
95
....gid = 0
96
....atime = Sat Dec 31 09:00:00 1988
97
....mtime = Sat Dec 31 09:00:00 1988
98
....ctime = Sat Dec 31 09:00:00 1988
99
stat of /tmp/j
100
stat(/tmp/j) returned -1 (errno=2)
101
....st_dev     (0x0:0x0)
102
....st_ino     3  may vary by small amount
103
....mode  = 00020771
104
....nlink = 1
105
....uid = 0
106
....gid = 0
107
....atime = Fri Jan 01 00:00:00 1988
108
....mtime = Fri Jan 01 00:00:00 1988
109
....ctime = Fri Jan 01 00:00:00 1988
110
fopen of /tmp/j
111
fprintf to /tmp/j
112
(1) 26 characters written to the file
113
(2) 26 characters written to the file
114
(3) 26 characters written to the file
115
(4) 26 characters written to the file
116
(5) 26 characters written to the file
117
....st_dev     (0x0:0x0)
118
....st_ino     12  may vary by small amount
119
....mode  = 00100660
120
....nlink = 1
121
....uid = 0
122
....gid = 0
123
....atime = Sat Dec 31 09:00:00 1988
124
....mtime = Sat Dec 31 09:00:00 1988
125
....ctime = Sat Dec 31 09:00:00 1988
126
This is call 1 to fprintf
127
This is call 2 to fprintf
128
This is call 3 to fprintf
129
This is call 4 to fprintf
130
This is call 5 to fprintf
131
....st_dev     (0x0:0x0)
132
....st_ino     12  may vary by small amount
133
....mode  = 00100660
134
....nlink = 1
135
....uid = 0
136
....gid = 0
137
....atime = Sat Dec 31 09:00:01 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
........my_dir/
151
........tom (file 0 0x0 0x0 0x0)
152
........john (file 0 0x0 0x0 0x0)
153
........joel (file 279487 0x7d58d8 0x7d5388 0x7cfe38)
154
........j (file 130 0x77a338 0x0 0x0)
155
***************       End of Dump        ***************
156
truncate /tmp/j to length of 40
157
....st_dev     (0x0:0x0)
158
....st_ino     12  may vary by small amount
159
....mode  = 00100660
160
....nlink = 1
161
....uid = 0
162
....gid = 0
163
....atime = Sat Dec 31 09:00:02 1988
164
....mtime = Sat Dec 31 09:00:00 1988
165
....ctime = Sat Dec 31 09:00:00 1988
166
*************** Dump of Entire IMFS ***************
167
/
168
....dev/
169
........console (device 0, 0)
170
........tty/
171
............S3 (device 255, 128)
172
........test_console (device 0, 0)
173
....etc/
174
........passwd (file 0 0x0 0x0 0x0)
175
....tmp/
176
........my_dir/
177
........tom (file 0 0x0 0x0 0x0)
178
........john (file 0 0x0 0x0 0x0)
179
........j (file 40 0x77a338 0x0 0x0)
180
***************       End of Dump        ***************
181
truncate /tmp/j to length of 0
182
truncate /tmp to length of 0 should fail with EISDIR
183
 
184
21: Is a directory
185
*************** Dump of Entire IMFS ***************
186
/
187
....dev/
188
........console (device 0, 0)
189
........tty/
190
............S3 (device 255, 128)
191
........test_console (device 0, 0)
192
....etc/
193
........passwd (file 0 0x0 0x0 0x0)
194
....tmp/
195
........my_dir/
196
........tom (file 0 0x0 0x0 0x0)
197
........john (file 0 0x0 0x0 0x0)
198
........j (file 0 0x77a338 0x0 0x0)
199
***************       End of Dump        ***************
200
*** END OF FILE TEST 1 ***
201
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.