source: rtems/testsuites/psxtests/psxstat/psxstat.scn @ 2e3ce06

4.104.114.84.95
Last change on this file since 2e3ce06 was 2e3ce06, checked in by Jennifer Averett <Jennifer.Averett@…>, on Nov 17, 2000 at 9:29:31 PM

2000-11-17 Jennifer Averret <jennifer@…>

  • psxmount/test.c, psxmount/psxmount.scn: Improve output to report expected error condition in one case.
  • psxreaddir/test.c, psxreaddir.scn: Added test cases to exercise readdir() of root of mounted filesystem. Also corrected the screen file for some mistakes noticed in this effort.
  • Property mode set to 100644
File size: 32.3 KB
Line 
1*** STAT TEST 01 ***
2>>>>Current Time:  - rtems_clock_get - 09:00:00   12/31/1988
3Making directory /my_mount_point/dir1
4Making directory /my_mount_point/dir2
5Making directory /my_mount_point/dir3
6Making directory /my_mount_point/dir4
7Making directory /my_mount_point/dir1/dir1
8Making directory /./././my_mount_point/dir1/ dir1
9Making directory /./././my_mount_point/links
10Making directory ///my_mount_point/dir1/dir1/../../dir1/../symlinks/////
11Making file /////my_mount_point/dir1///file1\//
12Making file /my_mount_point/dir1/file2
13Making file /my_mount_point/dir1/file3
14Making file /my_mount_point/dir1/file4
15Making file /my_mount_point/dir1/dir1/file1
16Making file ../../..//my_mount_point/dir1/./././dir1/ file1
17Making file main.c
18Making file dir1/dir1/../../links/dir1
19Making file links/dir2
20Making file links/dir3
21Making file links/dir4
22Making file links/dir1_dir1
23Making file links/dir1_ dir1
24Making file links/../links/../links/links
25Making file links/dir1_file1
26Making file links/dir1_file2
27Making file links/dir1_file3
28Making file links/dir1_file4
29Making file links/dir1_dir1_f1
30Making file links/dir1_dir1 f1
31Making file links/links/links/links_dir1
32Making file links//links_dir2
33Making file links//links_dir3
34Making file links//links_dir4
35Making file links//links_dir1_d1
36Making file links//links_dir1 d1
37Making file links//links_links
38Making file links///links_d1_file1
39Making file links///links_d1_file2
40Making file links///links_d1_file3
41Making file links///links_d1_file4
42Making file links///links_d1_d1_f1
43Making file links///links_r1_d1 f1
44Doing the stat() on all the good absolute paths
45stat( /my_mount_point/dev ) returned
46st_dev     (0x0:0x0)
47...st_ino     2
48...st_mode    40700
49...st_nlink   1
50...st_uid     0
51...st_gid     0
52...st_rdev    (0x0:0x0)
53...st_size    0
54...st_atime   Sat Dec 31 09:00:00 1988
55...st_mtime   Sat Dec 31 09:00:00 1988
56...st_ctime   Sat Dec 31 09:00:00 1988
57stat( ////my_mount_point/dir1///file1\// ) returned
58st_dev     (0x0:0x0)
59...st_ino     b
60...st_mode    100000
61...st_nlink   3
62...st_uid     0
63...st_gid     0
64...st_rdev    (0x0:0x0)
65...st_size    0
66...st_atime   Sat Dec 31 09:00:00 1988
67...st_mtime   Sat Dec 31 09:00:00 1988
68...st_ctime   Sat Dec 31 09:00:10 1988
69stat( /my_mount_point/dir1/\/file2 ) returned
70st_dev     (0x0:0x0)
71...st_ino     c
72...st_mode    100000
73...st_nlink   3
74...st_uid     0
75...st_gid     0
76...st_rdev    (0x0:0x0)
77...st_size    0
78...st_atime   Sat Dec 31 09:00:00 1988
79...st_mtime   Sat Dec 31 09:00:00 1988
80...st_ctime   Sat Dec 31 09:00:10 1988
81stat( /my_mount_point/dir1/file3/////\ ) returned
82st_dev     (0x0:0x0)
83...st_ino     d
84...st_mode    100000
85...st_nlink   3
86...st_uid     0
87...st_gid     0
88...st_rdev    (0x0:0x0)
89...st_size    0
90...st_atime   Sat Dec 31 09:00:00 1988
91...st_mtime   Sat Dec 31 09:00:00 1988
92...st_ctime   Sat Dec 31 09:00:10 1988
93stat( /my_mount_point/dir1/file4 ) returned
94st_dev     (0x0:0x0)
95...st_ino     e
96...st_mode    100000
97...st_nlink   3
98...st_uid     0
99...st_gid     0
100...st_rdev    (0x0:0x0)
101...st_size    0
102...st_atime   Sat Dec 31 09:00:00 1988
103...st_mtime   Sat Dec 31 09:00:00 1988
104...st_ctime   Sat Dec 31 09:00:10 1988
105stat( /my_mount_point/dir1/dir1/file1 ) returned
106st_dev     (0x0:0x0)
107...st_ino     f
108...st_mode    100000
109...st_nlink   3
110...st_uid     0
111...st_gid     0
112...st_rdev    (0x0:0x0)
113...st_size    0
114...st_atime   Sat Dec 31 09:00:00 1988
115...st_mtime   Sat Dec 31 09:00:00 1988
116...st_ctime   Sat Dec 31 09:00:10 1988
117stat( /my_mount_point/dir1/dir1/ file1 ) returned
118st_dev     (0x0:0x0)
119...st_ino     10
120...st_mode    100000
121...st_nlink   3
122...st_uid     0
123...st_gid     0
124...st_rdev    (0x0:0x0)
125...st_size    0
126...st_atime   Sat Dec 31 09:00:00 1988
127...st_mtime   Sat Dec 31 09:00:00 1988
128...st_ctime   Sat Dec 31 09:00:10 1988
129stat( /my_mount_point/dir1 ) returned
130st_dev     (0x0:0x0)
131...st_ino     3
132...st_mode    40700
133...st_nlink   3
134...st_uid     0
135...st_gid     0
136...st_rdev    (0x0:0x0)
137...st_size    1608
138...st_atime   Sat Dec 31 09:00:00 1988
139...st_mtime   Sat Dec 31 09:00:00 1988
140...st_ctime   Sat Dec 31 09:00:05 1988
141stat( /my_mount_point/dir2////// ) returned
142st_dev     (0x0:0x0)
143...st_ino     4
144...st_mode    40700
145...st_nlink   3
146...st_uid     0
147...st_gid     0
148...st_rdev    (0x0:0x0)
149...st_size    0
150...st_atime   Sat Dec 31 09:00:00 1988
151...st_mtime   Sat Dec 31 09:00:00 1988
152...st_ctime   Sat Dec 31 09:00:05 1988
153stat( /my_mount_point/dir3 ) returned
154st_dev     (0x0:0x0)
155...st_ino     5
156...st_mode    40700
157...st_nlink   3
158...st_uid     0
159...st_gid     0
160...st_rdev    (0x0:0x0)
161...st_size    0
162...st_atime   Sat Dec 31 09:00:00 1988
163...st_mtime   Sat Dec 31 09:00:00 1988
164...st_ctime   Sat Dec 31 09:00:05 1988
165stat( /my_mount_point/dir4 ) returned
166st_dev     (0x0:0x0)
167...st_ino     6
168...st_mode    40700
169...st_nlink   3
170...st_uid     0
171...st_gid     0
172...st_rdev    (0x0:0x0)
173...st_size    0
174...st_atime   Sat Dec 31 09:00:00 1988
175...st_mtime   Sat Dec 31 09:00:00 1988
176...st_ctime   Sat Dec 31 09:00:05 1988
177stat( /my_mount_point/dir1/dir1 ) returned
178st_dev     (0x0:0x0)
179...st_ino     7
180...st_mode    40700
181...st_nlink   3
182...st_uid     0
183...st_gid     0
184...st_rdev    (0x0:0x0)
185...st_size    536
186...st_atime   Sat Dec 31 09:00:00 1988
187...st_mtime   Sat Dec 31 09:00:00 1988
188...st_ctime   Sat Dec 31 09:00:05 1988
189stat( /my_mount_point/dir1/ dir1///\ ) returned
190st_dev     (0x0:0x0)
191...st_ino     8
192...st_mode    40700
193...st_nlink   3
194...st_uid     0
195...st_gid     0
196...st_rdev    (0x0:0x0)
197...st_size    0
198...st_atime   Sat Dec 31 09:00:00 1988
199...st_mtime   Sat Dec 31 09:00:00 1988
200...st_ctime   Sat Dec 31 09:00:05 1988
201stat( /my_mount_point///////links///// ) returned
202st_dev     (0x0:0x0)
203...st_ino     9
204...st_mode    40700
205...st_nlink   3
206...st_uid     0
207...st_gid     0
208...st_rdev    (0x0:0x0)
209...st_size    6968
210...st_atime   Sat Dec 31 09:00:00 1988
211...st_mtime   Sat Dec 31 09:00:00 1988
212...st_ctime   Sat Dec 31 09:00:05 1988
213Doing the stat() on all the good relative paths
214stat( dev ) returned
215st_dev     (0x0:0x0)
216...st_ino     2
217...st_mode    40700
218...st_nlink   1
219...st_uid     0
220...st_gid     0
221...st_rdev    (0x0:0x0)
222...st_size    0
223...st_atime   Sat Dec 31 09:00:00 1988
224...st_mtime   Sat Dec 31 09:00:00 1988
225...st_ctime   Sat Dec 31 09:00:00 1988
226stat( dir1///file1\// ) returned
227st_dev     (0x0:0x0)
228...st_ino     b
229...st_mode    100000
230...st_nlink   3
231...st_uid     0
232...st_gid     0
233...st_rdev    (0x0:0x0)
234...st_size    0
235...st_atime   Sat Dec 31 09:00:00 1988
236...st_mtime   Sat Dec 31 09:00:00 1988
237...st_ctime   Sat Dec 31 09:00:10 1988
238stat( dir1/\/file2 ) returned
239st_dev     (0x0:0x0)
240...st_ino     c
241...st_mode    100000
242...st_nlink   3
243...st_uid     0
244...st_gid     0
245...st_rdev    (0x0:0x0)
246...st_size    0
247...st_atime   Sat Dec 31 09:00:00 1988
248...st_mtime   Sat Dec 31 09:00:00 1988
249...st_ctime   Sat Dec 31 09:00:10 1988
250stat( dir1/file3/////\ ) returned
251st_dev     (0x0:0x0)
252...st_ino     d
253...st_mode    100000
254...st_nlink   3
255...st_uid     0
256...st_gid     0
257...st_rdev    (0x0:0x0)
258...st_size    0
259...st_atime   Sat Dec 31 09:00:00 1988
260...st_mtime   Sat Dec 31 09:00:00 1988
261...st_ctime   Sat Dec 31 09:00:10 1988
262stat( dir1/file4 ) returned
263st_dev     (0x0:0x0)
264...st_ino     e
265...st_mode    100000
266...st_nlink   3
267...st_uid     0
268...st_gid     0
269...st_rdev    (0x0:0x0)
270...st_size    0
271...st_atime   Sat Dec 31 09:00:00 1988
272...st_mtime   Sat Dec 31 09:00:00 1988
273...st_ctime   Sat Dec 31 09:00:10 1988
274stat( dir1/dir1/file1 ) returned
275st_dev     (0x0:0x0)
276...st_ino     f
277...st_mode    100000
278...st_nlink   3
279...st_uid     0
280...st_gid     0
281...st_rdev    (0x0:0x0)
282...st_size    0
283...st_atime   Sat Dec 31 09:00:00 1988
284...st_mtime   Sat Dec 31 09:00:00 1988
285...st_ctime   Sat Dec 31 09:00:10 1988
286stat( dir1/dir1/ file1 ) returned
287st_dev     (0x0:0x0)
288...st_ino     10
289...st_mode    100000
290...st_nlink   3
291...st_uid     0
292...st_gid     0
293...st_rdev    (0x0:0x0)
294...st_size    0
295...st_atime   Sat Dec 31 09:00:00 1988
296...st_mtime   Sat Dec 31 09:00:00 1988
297...st_ctime   Sat Dec 31 09:00:10 1988
298stat( dir1 ) returned
299st_dev     (0x0:0x0)
300...st_ino     3
301...st_mode    40700
302...st_nlink   3
303...st_uid     0
304...st_gid     0
305...st_rdev    (0x0:0x0)
306...st_size    1608
307...st_atime   Sat Dec 31 09:00:00 1988
308...st_mtime   Sat Dec 31 09:00:00 1988
309...st_ctime   Sat Dec 31 09:00:05 1988
310stat( dir2////// ) returned
311st_dev     (0x0:0x0)
312...st_ino     4
313...st_mode    40700
314...st_nlink   3
315...st_uid     0
316...st_gid     0
317...st_rdev    (0x0:0x0)
318...st_size    0
319...st_atime   Sat Dec 31 09:00:00 1988
320...st_mtime   Sat Dec 31 09:00:00 1988
321...st_ctime   Sat Dec 31 09:00:05 1988
322stat( dir3 ) returned
323st_dev     (0x0:0x0)
324...st_ino     5
325...st_mode    40700
326...st_nlink   3
327...st_uid     0
328...st_gid     0
329...st_rdev    (0x0:0x0)
330...st_size    0
331...st_atime   Sat Dec 31 09:00:00 1988
332...st_mtime   Sat Dec 31 09:00:00 1988
333...st_ctime   Sat Dec 31 09:00:05 1988
334stat( dir4 ) returned
335st_dev     (0x0:0x0)
336...st_ino     6
337...st_mode    40700
338...st_nlink   3
339...st_uid     0
340...st_gid     0
341...st_rdev    (0x0:0x0)
342...st_size    0
343...st_atime   Sat Dec 31 09:00:00 1988
344...st_mtime   Sat Dec 31 09:00:00 1988
345...st_ctime   Sat Dec 31 09:00:05 1988
346stat( dir1/dir1 ) returned
347st_dev     (0x0:0x0)
348...st_ino     7
349...st_mode    40700
350...st_nlink   3
351...st_uid     0
352...st_gid     0
353...st_rdev    (0x0:0x0)
354...st_size    536
355...st_atime   Sat Dec 31 09:00:00 1988
356...st_mtime   Sat Dec 31 09:00:00 1988
357...st_ctime   Sat Dec 31 09:00:05 1988
358stat( dir1/ dir1///\ ) returned
359st_dev     (0x0:0x0)
360...st_ino     8
361...st_mode    40700
362...st_nlink   3
363...st_uid     0
364...st_gid     0
365...st_rdev    (0x0:0x0)
366...st_size    0
367...st_atime   Sat Dec 31 09:00:00 1988
368...st_mtime   Sat Dec 31 09:00:00 1988
369...st_ctime   Sat Dec 31 09:00:05 1988
370stat( main.c ) returned
371st_dev     (0x0:0x0)
372...st_ino     11
373...st_mode    100000
374...st_nlink   1
375...st_uid     0
376...st_gid     0
377...st_rdev    (0x0:0x0)
378...st_size    0
379...st_atime   Sat Dec 31 09:00:00 1988
380...st_mtime   Sat Dec 31 09:00:00 1988
381...st_ctime   Sat Dec 31 09:00:00 1988
382chdir to dev
383stat relative paths that are now bad
384stat( dev ) returned : No such file or directory
385stat( dir1///file1\// ) returned : No such file or directory
386stat( dir1/\/file2 ) returned : No such file or directory
387stat( dir1/file3/////\ ) returned : No such file or directory
388stat( dir1/file4 ) returned : No such file or directory
389stat( dir1/dir1/file1 ) returned : No such file or directory
390stat( dir1/dir1/ file1 ) returned : No such file or directory
391stat( dir1 ) returned : No such file or directory
392stat( dir2////// ) returned : No such file or directory
393stat( dir3 ) returned : No such file or directory
394stat( dir4 ) returned : No such file or directory
395stat( dir1/dir1 ) returned : No such file or directory
396stat( dir1/ dir1///\ ) returned : No such file or directory
397stat( main.c ) returned : No such file or directory
398chdir to ../links
399Doing the stat() on good links
400stat( dir1/dir1/../../links/dir1 ) returned
401st_dev     (0x0:0x0)
402...st_ino     3
403...st_mode    40700
404...st_nlink   3
405...st_uid     0
406...st_gid     0
407...st_rdev    (0x0:0x0)
408...st_size    1608
409...st_atime   Sat Dec 31 09:00:00 1988
410...st_mtime   Sat Dec 31 09:00:00 1988
411...st_ctime   Sat Dec 31 09:00:05 1988
412stat( links/dir2 ) returned
413st_dev     (0x0:0x0)
414...st_ino     4
415...st_mode    40700
416...st_nlink   3
417...st_uid     0
418...st_gid     0
419...st_rdev    (0x0:0x0)
420...st_size    0
421...st_atime   Sat Dec 31 09:00:00 1988
422...st_mtime   Sat Dec 31 09:00:00 1988
423...st_ctime   Sat Dec 31 09:00:05 1988
424stat( links/dir3 ) returned
425st_dev     (0x0:0x0)
426...st_ino     5
427...st_mode    40700
428...st_nlink   3
429...st_uid     0
430...st_gid     0
431...st_rdev    (0x0:0x0)
432...st_size    0
433...st_atime   Sat Dec 31 09:00:00 1988
434...st_mtime   Sat Dec 31 09:00:00 1988
435...st_ctime   Sat Dec 31 09:00:05 1988
436stat( links/dir4 ) returned
437st_dev     (0x0:0x0)
438...st_ino     6
439...st_mode    40700
440...st_nlink   3
441...st_uid     0
442...st_gid     0
443...st_rdev    (0x0:0x0)
444...st_size    0
445...st_atime   Sat Dec 31 09:00:00 1988
446...st_mtime   Sat Dec 31 09:00:00 1988
447...st_ctime   Sat Dec 31 09:00:05 1988
448stat( links/dir1_dir1 ) returned
449st_dev     (0x0:0x0)
450...st_ino     7
451...st_mode    40700
452...st_nlink   3
453...st_uid     0
454...st_gid     0
455...st_rdev    (0x0:0x0)
456...st_size    536
457...st_atime   Sat Dec 31 09:00:00 1988
458...st_mtime   Sat Dec 31 09:00:00 1988
459...st_ctime   Sat Dec 31 09:00:05 1988
460stat( links/dir1_ dir1 ) returned
461st_dev     (0x0:0x0)
462...st_ino     8
463...st_mode    40700
464...st_nlink   3
465...st_uid     0
466...st_gid     0
467...st_rdev    (0x0:0x0)
468...st_size    0
469...st_atime   Sat Dec 31 09:00:00 1988
470...st_mtime   Sat Dec 31 09:00:00 1988
471...st_ctime   Sat Dec 31 09:00:05 1988
472stat( links/../links/../links/links ) returned
473st_dev     (0x0:0x0)
474...st_ino     9
475...st_mode    40700
476...st_nlink   3
477...st_uid     0
478...st_gid     0
479...st_rdev    (0x0:0x0)
480...st_size    6968
481...st_atime   Sat Dec 31 09:00:00 1988
482...st_mtime   Sat Dec 31 09:00:00 1988
483...st_ctime   Sat Dec 31 09:00:05 1988
484stat( links/dir1_file1 ) returned
485st_dev     (0x0:0x0)
486...st_ino     b
487...st_mode    100000
488...st_nlink   3
489...st_uid     0
490...st_gid     0
491...st_rdev    (0x0:0x0)
492...st_size    0
493...st_atime   Sat Dec 31 09:00:00 1988
494...st_mtime   Sat Dec 31 09:00:00 1988
495...st_ctime   Sat Dec 31 09:00:10 1988
496stat( links/dir1_file2 ) returned
497st_dev     (0x0:0x0)
498...st_ino     c
499...st_mode    100000
500...st_nlink   3
501...st_uid     0
502...st_gid     0
503...st_rdev    (0x0:0x0)
504...st_size    0
505...st_atime   Sat Dec 31 09:00:00 1988
506...st_mtime   Sat Dec 31 09:00:00 1988
507...st_ctime   Sat Dec 31 09:00:10 1988
508stat( links/dir1_file3 ) returned
509st_dev     (0x0:0x0)
510...st_ino     d
511...st_mode    100000
512...st_nlink   3
513...st_uid     0
514...st_gid     0
515...st_rdev    (0x0:0x0)
516...st_size    0
517...st_atime   Sat Dec 31 09:00:00 1988
518...st_mtime   Sat Dec 31 09:00:00 1988
519...st_ctime   Sat Dec 31 09:00:10 1988
520stat( links/dir1_file4 ) returned
521st_dev     (0x0:0x0)
522...st_ino     e
523...st_mode    100000
524...st_nlink   3
525...st_uid     0
526...st_gid     0
527...st_rdev    (0x0:0x0)
528...st_size    0
529...st_atime   Sat Dec 31 09:00:00 1988
530...st_mtime   Sat Dec 31 09:00:00 1988
531...st_ctime   Sat Dec 31 09:00:10 1988
532stat( links/dir1_dir1_f1 ) returned
533st_dev     (0x0:0x0)
534...st_ino     f
535...st_mode    100000
536...st_nlink   3
537...st_uid     0
538...st_gid     0
539...st_rdev    (0x0:0x0)
540...st_size    0
541...st_atime   Sat Dec 31 09:00:00 1988
542...st_mtime   Sat Dec 31 09:00:00 1988
543...st_ctime   Sat Dec 31 09:00:10 1988
544stat( links/dir1_dir1 f1 ) returned
545st_dev     (0x0:0x0)
546...st_ino     10
547...st_mode    100000
548...st_nlink   3
549...st_uid     0
550...st_gid     0
551...st_rdev    (0x0:0x0)
552...st_size    0
553...st_atime   Sat Dec 31 09:00:00 1988
554...st_mtime   Sat Dec 31 09:00:00 1988
555...st_ctime   Sat Dec 31 09:00:10 1988
556stat( links/links/links/links_dir1 ) returned
557st_dev     (0x0:0x0)
558...st_ino     3
559...st_mode    40700
560...st_nlink   3
561...st_uid     0
562...st_gid     0
563...st_rdev    (0x0:0x0)
564...st_size    1608
565...st_atime   Sat Dec 31 09:00:00 1988
566...st_mtime   Sat Dec 31 09:00:00 1988
567...st_ctime   Sat Dec 31 09:00:05 1988
568stat( links//links_dir2 ) returned
569st_dev     (0x0:0x0)
570...st_ino     4
571...st_mode    40700
572...st_nlink   3
573...st_uid     0
574...st_gid     0
575...st_rdev    (0x0:0x0)
576...st_size    0
577...st_atime   Sat Dec 31 09:00:00 1988
578...st_mtime   Sat Dec 31 09:00:00 1988
579...st_ctime   Sat Dec 31 09:00:05 1988
580stat( links//links_dir3 ) returned
581st_dev     (0x0:0x0)
582...st_ino     5
583...st_mode    40700
584...st_nlink   3
585...st_uid     0
586...st_gid     0
587...st_rdev    (0x0:0x0)
588...st_size    0
589...st_atime   Sat Dec 31 09:00:00 1988
590...st_mtime   Sat Dec 31 09:00:00 1988
591...st_ctime   Sat Dec 31 09:00:05 1988
592stat( links//links_dir4 ) returned
593st_dev     (0x0:0x0)
594...st_ino     6
595...st_mode    40700
596...st_nlink   3
597...st_uid     0
598...st_gid     0
599...st_rdev    (0x0:0x0)
600...st_size    0
601...st_atime   Sat Dec 31 09:00:00 1988
602...st_mtime   Sat Dec 31 09:00:00 1988
603...st_ctime   Sat Dec 31 09:00:05 1988
604stat( links//links_dir1_d1 ) returned
605st_dev     (0x0:0x0)
606...st_ino     7
607...st_mode    40700
608...st_nlink   3
609...st_uid     0
610...st_gid     0
611...st_rdev    (0x0:0x0)
612...st_size    536
613...st_atime   Sat Dec 31 09:00:00 1988
614...st_mtime   Sat Dec 31 09:00:00 1988
615...st_ctime   Sat Dec 31 09:00:05 1988
616stat( links//links_dir1 d1 ) returned
617st_dev     (0x0:0x0)
618...st_ino     8
619...st_mode    40700
620...st_nlink   3
621...st_uid     0
622...st_gid     0
623...st_rdev    (0x0:0x0)
624...st_size    0
625...st_atime   Sat Dec 31 09:00:00 1988
626...st_mtime   Sat Dec 31 09:00:00 1988
627...st_ctime   Sat Dec 31 09:00:05 1988
628stat( links//links_links ) returned
629st_dev     (0x0:0x0)
630...st_ino     9
631...st_mode    40700
632...st_nlink   3
633...st_uid     0
634...st_gid     0
635...st_rdev    (0x0:0x0)
636...st_size    6968
637...st_atime   Sat Dec 31 09:00:00 1988
638...st_mtime   Sat Dec 31 09:00:00 1988
639...st_ctime   Sat Dec 31 09:00:05 1988
640stat( links///links_d1_file1 ) returned
641st_dev     (0x0:0x0)
642...st_ino     b
643...st_mode    100000
644...st_nlink   3
645...st_uid     0
646...st_gid     0
647...st_rdev    (0x0:0x0)
648...st_size    0
649...st_atime   Sat Dec 31 09:00:00 1988
650...st_mtime   Sat Dec 31 09:00:00 1988
651...st_ctime   Sat Dec 31 09:00:10 1988
652stat( links///links_d1_file2 ) returned
653st_dev     (0x0:0x0)
654...st_ino     c
655...st_mode    100000
656...st_nlink   3
657...st_uid     0
658...st_gid     0
659...st_rdev    (0x0:0x0)
660...st_size    0
661...st_atime   Sat Dec 31 09:00:00 1988
662...st_mtime   Sat Dec 31 09:00:00 1988
663...st_ctime   Sat Dec 31 09:00:10 1988
664stat( links///links_d1_file3 ) returned
665st_dev     (0x0:0x0)
666...st_ino     d
667...st_mode    100000
668...st_nlink   3
669...st_uid     0
670...st_gid     0
671...st_rdev    (0x0:0x0)
672...st_size    0
673...st_atime   Sat Dec 31 09:00:00 1988
674...st_mtime   Sat Dec 31 09:00:00 1988
675...st_ctime   Sat Dec 31 09:00:10 1988
676stat( links///links_d1_file4 ) returned
677st_dev     (0x0:0x0)
678...st_ino     e
679...st_mode    100000
680...st_nlink   3
681...st_uid     0
682...st_gid     0
683...st_rdev    (0x0:0x0)
684...st_size    0
685...st_atime   Sat Dec 31 09:00:00 1988
686...st_mtime   Sat Dec 31 09:00:00 1988
687...st_ctime   Sat Dec 31 09:00:10 1988
688stat( links///links_d1_d1_f1 ) returned
689st_dev     (0x0:0x0)
690...st_ino     f
691...st_mode    100000
692...st_nlink   3
693...st_uid     0
694...st_gid     0
695...st_rdev    (0x0:0x0)
696...st_size    0
697...st_atime   Sat Dec 31 09:00:00 1988
698...st_mtime   Sat Dec 31 09:00:00 1988
699...st_ctime   Sat Dec 31 09:00:10 1988
700stat( links///links_r1_d1 f1 ) returned
701st_dev     (0x0:0x0)
702...st_ino     10
703...st_mode    100000
704...st_nlink   3
705...st_uid     0
706...st_gid     0
707...st_rdev    (0x0:0x0)
708...st_size    0
709...st_atime   Sat Dec 31 09:00:00 1988
710...st_mtime   Sat Dec 31 09:00:00 1988
711...st_ctime   Sat Dec 31 09:00:10 1988
712chmod of /my_mount_point/dir1/dir1 to Read/Write
713Doing the stat() on all the bad paths
714stat( /my_mount_point/links/ENAMETOOLONG__________________________ ) returned : File or path name too long
715stat( /my_mount_point/dir1/file4/NOTADIR ) returned : Not a directory
716stat( /my_mount_point/dir1/dir1/EACCES__ ) returned : Permission denied
717Making file /my_mount_point/links/ENAMETOOLONG__________________________ : File or path name too long
718Making file /my_mount_point/dir1/file4/NOTADIR : Not a directory
719Making file /my_mount_point/dir1/dir1/EACCES__ : Permission denied
720Return /my_mount_point/dir1/dir1 to RWX
721Making file /my_mount_point/symlinks/a_file_symlink
722Verify with readlink
723Making file /my_mount_point/symlinks/a_dir_symlink
724Verify with readlink
725Making file /my_mount_point/symlinks/a_link_symlink
726Verify with readlink
727Making file ../symlinks/no_file
728Verify with readlink
729Making file /my_mount_point/symlinks/a_dir_symlink/a_file_symlink
730Verify with readlink
731Making file /my_mount_point/symlinks/links
732Verify with readlink
733stat( /my_mount_point/symlinks/a_file_symlink ) returned
734st_dev     (0x0:0x0)
735...st_ino     b
736...st_mode    100000
737...st_nlink   3
738...st_uid     0
739...st_gid     0
740...st_rdev    (0x0:0x0)
741...st_size    0
742...st_atime   Sat Dec 31 09:00:00 1988
743...st_mtime   Sat Dec 31 09:00:00 1988
744...st_ctime   Sat Dec 31 09:00:10 1988
745stat( /my_mount_point/symlinks/a_dir_symlink ) returned
746st_dev     (0x0:0x0)
747...st_ino     3
748...st_mode    40700
749...st_nlink   3
750...st_uid     0
751...st_gid     0
752...st_rdev    (0x0:0x0)
753...st_size    1876
754...st_atime   Sat Dec 31 09:00:00 1988
755...st_mtime   Sat Dec 31 09:00:00 1988
756...st_ctime   Sat Dec 31 09:00:05 1988
757stat( /my_mount_point/symlinks/a_link_symlink ) returned
758st_dev     (0x0:0x0)
759...st_ino     3
760...st_mode    40700
761...st_nlink   3
762...st_uid     0
763...st_gid     0
764...st_rdev    (0x0:0x0)
765...st_size    1876
766...st_atime   Sat Dec 31 09:00:00 1988
767...st_mtime   Sat Dec 31 09:00:00 1988
768...st_ctime   Sat Dec 31 09:00:05 1988
769stat( ../symlinks/no_file ) returned : No such file or directory
770stat( /my_mount_point/symlinks/a_dir_symlink/a_file_symlink ) returned
771st_dev     (0x0:0x0)
772...st_ino     3
773...st_mode    40700
774...st_nlink   3
775...st_uid     0
776...st_gid     0
777...st_rdev    (0x0:0x0)
778...st_size    1876
779...st_atime   Sat Dec 31 09:00:00 1988
780...st_mtime   Sat Dec 31 09:00:00 1988
781...st_ctime   Sat Dec 31 09:00:05 1988
782Making file 1
783Verify with readlink
784Making file 2
785Verify with readlink
786Making file 3
787Verify with readlink
788Making file 4
789Verify with readlink
790Making file 5
791Verify with readlink
792Making file 6
793Verify with readlink
794Making file 7
795Verify with readlink
796Making file 8
797Verify with readlink
798Making file 9
799Verify with readlink
800stat( 1 ) returned : No such file or directory
801stat( 2 ) returned : No such file or directory
802stat( 3 ) returned : No such file or directory
803stat( 4 ) returned : No such file or directory
804stat( 5 ) returned : No such file or directory
805stat( 6 ) returned : Too many symbolic links
806stat( 7 ) returned : Too many symbolic links
807stat( 8 ) returned : Too many symbolic links
808stat( 9 ) returned : Too many symbolic links
809Pass an invalid mode to chmod should fail with EPERM
810chdir to a file should fail with ENOTDIR
811Verify RWX permission on /my_mount_point/dir1 via access
812chmod of /my_mount_point/dir1 to Read/Write
813chmod fred should fail with ENOENT
814Create under /my_mount_point/dir1 should fail with EACCES
815chdir to /my_mount_point/dir1/dir1 should fail with EACCES
816Stat with a NULL buffer should fail with EFAULT
817chmod of /my_mount_point/dir1 to Read/Write
818mkdir /my_mount_point/dir1/BADNAME should fail with EACCESS
819/my_mount_point/dir1 Should exist ( access )
820/my_mount_point/dir1 Should have read  permission( access )
821/my_mount_point/dir1 Should have write permission( access )
822/my_mount_point/dir1 Should not have execute permission( access )
823Restore /my_mount_point/dir1 to RWX
824chdir to /my_mount_point
825Remove /./././my_mount_point/dir1/ dir1
826stat( /./././my_mount_point/dir1/ dir1 ) returned : No such file or directory
827stat( links/dir1_ dir1 ) returned
828st_dev     (0x0:0x0)
829...st_ino     8
830...st_mode    40700
831...st_nlink   2
832...st_uid     0
833...st_gid     0
834...st_rdev    (0x0:0x0)
835...st_size    0
836...st_atime   Sat Dec 31 09:00:00 1988
837...st_mtime   Sat Dec 31 09:00:00 1988
838...st_ctime   Sat Dec 31 09:00:20 1988
839stat( links//links_dir1 d1 ) returned
840st_dev     (0x0:0x0)
841...st_ino     8
842...st_mode    40700
843...st_nlink   2
844...st_uid     0
845...st_gid     0
846...st_rdev    (0x0:0x0)
847...st_size    0
848...st_atime   Sat Dec 31 09:00:00 1988
849...st_mtime   Sat Dec 31 09:00:00 1988
850...st_ctime   Sat Dec 31 09:00:20 1988
851Chdir to links/dir1_ dir1
852Chdir to .. should fail with ENOENT
853mkdir ../t should fail with ENOENT
854mkdir t
855chdir to /my_mount_point
856rmdir links/dir1_ dir1 should fail with ENOTDIR
857unlink links/dir1_ dir1
858unlink links//links_dir1 d1 should fail with ENOTEMPTY
859rmdir links//links_dir1 d1/t
860unlink links/dir1_ dir1
861Attempting to mount IMFS file system at /dir1/my_mount_point
862rmdir /dir1/my_mount_point should fail with EBUSY
863Unmount /my_mount_point/dir1/my_mount_point
864chmod of /////my_mount_point/dir1///file1\// to group and other execute
865Open /////my_mount_point/dir1///file1\// for write should fail with EACCES
866chmod of /my_mount_point/dir4 to User Execute and Read
867Mkdir of /my_mount_point/dir4/NewFile should fail with EACCES
868Making too many hard links.
869Making file /LinkName1
870Making file /LinkName2
871Making file /LinkName3
872Making file /LinkName4
873Making file /LinkName5
874Making file /LinkName6
875Making file /LinkName7
876Making file /LinkName8
877pass fstat a null pointer should fail with EFAULT
878chdir to /my_mount_point
879Change group of /////my_mount_point/dir1///file1\//
880stat( /////my_mount_point/dir1///file1\// ) returned
881st_dev     (0x0:0x0)
882...st_ino     b
883...st_mode    100011
884...st_nlink   3
885...st_uid     0
886...st_gid     1
887...st_rdev    (0x0:0x0)
888...st_size    0
889...st_atime   Sat Dec 31 09:00:00 1988
890...st_mtime   Sat Dec 31 09:00:00 1988
891...st_ctime   Sat Dec 31 09:00:25 1988
892Change owner of /////my_mount_point/dir1///file1\//
893stat( /////my_mount_point/dir1///file1\// ) returned
894st_dev     (0x0:0x0)
895...st_ino     b
896...st_mode    100011
897...st_nlink   3
898...st_uid     1
899...st_gid     0
900...st_rdev    (0x0:0x0)
901...st_size    0
902...st_atime   Sat Dec 31 09:00:00 1988
903...st_mtime   Sat Dec 31 09:00:00 1988
904...st_ctime   Sat Dec 31 09:00:25 1988
905Change group of /my_mount_point/dir1/file2
906stat( /my_mount_point/dir1/file2 ) returned
907st_dev     (0x0:0x0)
908...st_ino     c
909...st_mode    100000
910...st_nlink   3
911...st_uid     0
912...st_gid     1
913...st_rdev    (0x0:0x0)
914...st_size    0
915...st_atime   Sat Dec 31 09:00:00 1988
916...st_mtime   Sat Dec 31 09:00:00 1988
917...st_ctime   Sat Dec 31 09:00:25 1988
918Change owner of /my_mount_point/dir1/file2
919stat( /my_mount_point/dir1/file2 ) returned
920st_dev     (0x0:0x0)
921...st_ino     c
922...st_mode    100000
923...st_nlink   3
924...st_uid     1
925...st_gid     0
926...st_rdev    (0x0:0x0)
927...st_size    0
928...st_atime   Sat Dec 31 09:00:00 1988
929...st_mtime   Sat Dec 31 09:00:00 1988
930...st_ctime   Sat Dec 31 09:00:25 1988
931Change group of /my_mount_point/dir1/file3
932stat( /my_mount_point/dir1/file3 ) returned
933st_dev     (0x0:0x0)
934...st_ino     d
935...st_mode    100000
936...st_nlink   3
937...st_uid     0
938...st_gid     1
939...st_rdev    (0x0:0x0)
940...st_size    0
941...st_atime   Sat Dec 31 09:00:00 1988
942...st_mtime   Sat Dec 31 09:00:00 1988
943...st_ctime   Sat Dec 31 09:00:25 1988
944Change owner of /my_mount_point/dir1/file3
945stat( /my_mount_point/dir1/file3 ) returned
946st_dev     (0x0:0x0)
947...st_ino     d
948...st_mode    100000
949...st_nlink   3
950...st_uid     1
951...st_gid     0
952...st_rdev    (0x0:0x0)
953...st_size    0
954...st_atime   Sat Dec 31 09:00:00 1988
955...st_mtime   Sat Dec 31 09:00:00 1988
956...st_ctime   Sat Dec 31 09:00:25 1988
957Change group of /my_mount_point/dir1/file4
958stat( /my_mount_point/dir1/file4 ) returned
959st_dev     (0x0:0x0)
960...st_ino     e
961...st_mode    100000
962...st_nlink   3
963...st_uid     0
964...st_gid     1
965...st_rdev    (0x0:0x0)
966...st_size    0
967...st_atime   Sat Dec 31 09:00:00 1988
968...st_mtime   Sat Dec 31 09:00:00 1988
969...st_ctime   Sat Dec 31 09:00:25 1988
970Change owner of /my_mount_point/dir1/file4
971stat( /my_mount_point/dir1/file4 ) returned
972st_dev     (0x0:0x0)
973...st_ino     e
974...st_mode    100000
975...st_nlink   3
976...st_uid     1
977...st_gid     0
978...st_rdev    (0x0:0x0)
979...st_size    0
980...st_atime   Sat Dec 31 09:00:00 1988
981...st_mtime   Sat Dec 31 09:00:00 1988
982...st_ctime   Sat Dec 31 09:00:25 1988
983Change group of /my_mount_point/dir1/dir1/file1
984stat( /my_mount_point/dir1/dir1/file1 ) returned
985st_dev     (0x0:0x0)
986...st_ino     f
987...st_mode    100000
988...st_nlink   3
989...st_uid     0
990...st_gid     1
991...st_rdev    (0x0:0x0)
992...st_size    0
993...st_atime   Sat Dec 31 09:00:00 1988
994...st_mtime   Sat Dec 31 09:00:00 1988
995...st_ctime   Sat Dec 31 09:00:25 1988
996Change owner of /my_mount_point/dir1/dir1/file1
997stat( /my_mount_point/dir1/dir1/file1 ) returned
998st_dev     (0x0:0x0)
999...st_ino     f
1000...st_mode    100000
1001...st_nlink   3
1002...st_uid     1
1003...st_gid     0
1004...st_rdev    (0x0:0x0)
1005...st_size    0
1006...st_atime   Sat Dec 31 09:00:00 1988
1007...st_mtime   Sat Dec 31 09:00:00 1988
1008...st_ctime   Sat Dec 31 09:00:25 1988
1009Change group of ../../..//my_mount_point/dir1/./././dir1/ file1
1010stat( ../../..//my_mount_point/dir1/./././dir1/ file1 ) returned
1011st_dev     (0x0:0x0)
1012...st_ino     10
1013...st_mode    100000
1014...st_nlink   3
1015...st_uid     0
1016...st_gid     1
1017...st_rdev    (0x0:0x0)
1018...st_size    0
1019...st_atime   Sat Dec 31 09:00:00 1988
1020...st_mtime   Sat Dec 31 09:00:00 1988
1021...st_ctime   Sat Dec 31 09:00:25 1988
1022Change owner of ../../..//my_mount_point/dir1/./././dir1/ file1
1023stat( ../../..//my_mount_point/dir1/./././dir1/ file1 ) returned
1024st_dev     (0x0:0x0)
1025...st_ino     10
1026...st_mode    100000
1027...st_nlink   3
1028...st_uid     1
1029...st_gid     0
1030...st_rdev    (0x0:0x0)
1031...st_size    0
1032...st_atime   Sat Dec 31 09:00:00 1988
1033...st_mtime   Sat Dec 31 09:00:00 1988
1034...st_ctime   Sat Dec 31 09:00:25 1988
1035Change group of main.c
1036stat( main.c ) returned
1037st_dev     (0x0:0x0)
1038...st_ino     11
1039...st_mode    100000
1040...st_nlink   1
1041...st_uid     0
1042...st_gid     1
1043...st_rdev    (0x0:0x0)
1044...st_size    0
1045...st_atime   Sat Dec 31 09:00:00 1988
1046...st_mtime   Sat Dec 31 09:00:00 1988
1047...st_ctime   Sat Dec 31 09:00:25 1988
1048Change owner of main.c
1049stat( main.c ) returned
1050st_dev     (0x0:0x0)
1051...st_ino     11
1052...st_mode    100000
1053...st_nlink   1
1054...st_uid     1
1055...st_gid     0
1056...st_rdev    (0x0:0x0)
1057...st_size    0
1058...st_atime   Sat Dec 31 09:00:00 1988
1059...st_mtime   Sat Dec 31 09:00:00 1988
1060...st_ctime   Sat Dec 31 09:00:25 1988
1061Change group of dir1/dir1/../../links/dir1
1062stat( dir1/dir1/../../links/dir1 ) returned
1063st_dev     (0x0:0x0)
1064...st_ino     3
1065...st_mode    40700
1066...st_nlink   3
1067...st_uid     0
1068...st_gid     1
1069...st_rdev    (0x0:0x0)
1070...st_size    1876
1071...st_atime   Sat Dec 31 09:00:00 1988
1072...st_mtime   Sat Dec 31 09:00:00 1988
1073...st_ctime   Sat Dec 31 09:00:30 1988
1074Change owner of dir1/dir1/../../links/dir1
1075stat( dir1/dir1/../../links/dir1 ) returned : Permission denied
1076Change group of links/dir2
1077stat( links/dir2 ) returned
1078st_dev     (0x0:0x0)
1079...st_ino     4
1080...st_mode    40700
1081...st_nlink   3
1082...st_uid     0
1083...st_gid     1
1084...st_rdev    (0x0:0x0)
1085...st_size    0
1086...st_atime   Sat Dec 31 09:00:00 1988
1087...st_mtime   Sat Dec 31 09:00:00 1988
1088...st_ctime   Sat Dec 31 09:00:30 1988
1089Change owner of links/dir2
1090stat( links/dir2 ) returned
1091st_dev     (0x0:0x0)
1092...st_ino     4
1093...st_mode    40700
1094...st_nlink   3
1095...st_uid     1
1096...st_gid     0
1097...st_rdev    (0x0:0x0)
1098...st_size    0
1099...st_atime   Sat Dec 31 09:00:00 1988
1100...st_mtime   Sat Dec 31 09:00:00 1988
1101...st_ctime   Sat Dec 31 09:00:30 1988
1102Change group of links/dir3
1103stat( links/dir3 ) returned
1104st_dev     (0x0:0x0)
1105...st_ino     5
1106...st_mode    40700
1107...st_nlink   3
1108...st_uid     0
1109...st_gid     1
1110...st_rdev    (0x0:0x0)
1111...st_size    0
1112...st_atime   Sat Dec 31 09:00:00 1988
1113...st_mtime   Sat Dec 31 09:00:00 1988
1114...st_ctime   Sat Dec 31 09:00:30 1988
1115Change owner of links/dir3
1116stat( links/dir3 ) returned
1117st_dev     (0x0:0x0)
1118...st_ino     5
1119...st_mode    40700
1120...st_nlink   3
1121...st_uid     1
1122...st_gid     0
1123...st_rdev    (0x0:0x0)
1124...st_size    0
1125...st_atime   Sat Dec 31 09:00:00 1988
1126...st_mtime   Sat Dec 31 09:00:00 1988
1127...st_ctime   Sat Dec 31 09:00:30 1988
1128Change group of links/dir4
1129stat( links/dir4 ) returned
1130st_dev     (0x0:0x0)
1131...st_ino     6
1132...st_mode    40500
1133...st_nlink   3
1134...st_uid     0
1135...st_gid     1
1136...st_rdev    (0x0:0x0)
1137...st_size    0
1138...st_atime   Sat Dec 31 09:00:00 1988
1139...st_mtime   Sat Dec 31 09:00:00 1988
1140...st_ctime   Sat Dec 31 09:00:30 1988
1141Change owner of links/dir4
1142stat( links/dir4 ) returned
1143st_dev     (0x0:0x0)
1144...st_ino     6
1145...st_mode    40500
1146...st_nlink   3
1147...st_uid     1
1148...st_gid     0
1149...st_rdev    (0x0:0x0)
1150...st_size    0
1151...st_atime   Sat Dec 31 09:00:00 1988
1152...st_mtime   Sat Dec 31 09:00:00 1988
1153...st_ctime   Sat Dec 31 09:00:30 1988
1154Change group of links/dir1_dir1
1155stat( links/dir1_dir1 ) returned
1156st_dev     (0x0:0x0)
1157...st_ino     7
1158...st_mode    40700
1159...st_nlink   3
1160...st_uid     0
1161...st_gid     1
1162...st_rdev    (0x0:0x0)
1163...st_size    536
1164...st_atime   Sat Dec 31 09:00:00 1988
1165...st_mtime   Sat Dec 31 09:00:00 1988
1166...st_ctime   Sat Dec 31 09:00:30 1988
1167Change owner of links/dir1_dir1
1168stat( links/dir1_dir1 ) returned
1169st_dev     (0x0:0x0)
1170...st_ino     7
1171...st_mode    40700
1172...st_nlink   3
1173...st_uid     1
1174...st_gid     0
1175...st_rdev    (0x0:0x0)
1176...st_size    536
1177...st_atime   Sat Dec 31 09:00:00 1988
1178...st_mtime   Sat Dec 31 09:00:00 1988
1179...st_ctime   Sat Dec 31 09:00:30 1988
1180Change group of links/dir1_ dir1
1181stat( links/dir1_ dir1 ) returned : No such file or directory
1182Change owner of links/dir1_ dir1
1183stat( links/dir1_ dir1 ) returned : No such file or directory
1184Change group of links/../links/../links/links
1185stat( links/../links/../links/links ) returned
1186st_dev     (0x0:0x0)
1187...st_ino     9
1188...st_mode    40700
1189...st_nlink   3
1190...st_uid     0
1191...st_gid     1
1192...st_rdev    (0x0:0x0)
1193...st_size    8844
1194...st_atime   Sat Dec 31 09:00:00 1988
1195...st_mtime   Sat Dec 31 09:00:00 1988
1196...st_ctime   Sat Dec 31 09:00:30 1988
1197Change owner of links/../links/../links/links
1198stat( links/../links/../links/links ) returned : Permission denied
1199*** END OF STAT TEST 01 ***
Note: See TracBrowser for help on using the repository browser.