Changeset fa3346f in rtems for testsuites/psxtests/psxreaddir/psxreaddir.scn
- Timestamp:
- 11/16/99 15:41:58 (24 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- d6c83529
- Parents:
- f9879915
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
testsuites/psxtests/psxreaddir/psxreaddir.scn
rf9879915 rfa3346f 1 2 3 1 *** READDIR TEST *** 4 5 2 chdir to the root directory 6 3 chdir() status : 0 7 8 9 4 Creating a series of directories under / 10 5 Creating directory: a 0 0 Success … … 19 14 Creating directory: c/y/a3333 0 0 Success 20 15 Creating directory: c/y/j123 0 0 Success 21 16 Create a lot of files 17 Create a 18 Create b 19 Create c 20 Create d 21 Create e 22 Create f 23 Create g 24 Create h 25 Create i 26 Create j 27 Create k 28 Create l 29 Create m 30 Create n 31 Create o 32 Create p 33 Create q 34 Create r 35 Create s 36 Create t 37 Create u 38 Create v 39 Create w 40 Create x 41 Create y 42 Create z 43 Create aa 44 Create ab 45 Create ac 46 Create ad 47 Create ae 48 Create af 49 Create ag 50 Create ah 51 Create ai 52 Create aj 53 Create ak 54 Create al 55 Create am 56 Create an 57 Create ao 58 Create ap 59 Create aq 60 Create ar 61 Open /many and print the directory 62 name inode offset reclen type 63 a 1 0 268 0x010c 64 b 1 268 268 0x010c 65 c 1 536 268 0x010c 66 d 1 804 268 0x010c 67 e 1 1072 268 0x010c 68 f 1 1340 268 0x010c 69 g 1 1608 268 0x010c 70 h 1 1876 268 0x010c 71 i 1 2144 268 0x010c 72 j 1 2412 268 0x010c 73 k 1 2680 268 0x010c 74 l 1 2948 268 0x010c 75 m 1 3216 268 0x010c 76 n 1 3484 268 0x010c 77 o 1 3752 268 0x010c 78 p 1 4020 268 0x010c 79 q 1 4288 268 0x010c 80 r 1 4556 268 0x010c 81 s 1 4824 268 0x010c 82 t 1 5092 268 0x010c 83 u 1 5360 268 0x010c 84 v 1 5628 268 0x010c 85 w 1 5896 268 0x010c 86 x 1 6164 268 0x010c 87 y 1 6432 268 0x010c 88 z 1 6700 268 0x010c 89 aa 1 6968 268 0x010c 90 ab 1 7236 268 0x010c 91 ac 1 7504 268 0x010c 92 ad 1 7772 268 0x010c 93 ae 1 8040 268 0x010c 94 af 1 8308 268 0x010c 95 ag 1 8576 268 0x010c 96 ah 1 8844 268 0x010c 97 ai 1 9112 268 0x010c 98 aj 1 9380 268 0x010c 99 ak 1 9648 268 0x010c 100 al 1 9916 268 0x010c 101 am 1 10184 268 0x010c 102 an 1 10452 268 0x010c 103 ao 1 10720 268 0x010c 104 ap 1 10988 268 0x010c 105 aq 1 11256 268 0x010c 106 ar 1 11524 268 0x010c 107 open /b/myfile 108 scandir a file status: -1 109 Open /b/new_file 110 fcntl F_SETFD should return 0 111 fcntl F_SETFD should return 1 112 fcntl F_DUPFD should return 0 -- skip until implemented 113 fcntl F_GETFL returns current flags 114 fcntl F_GETFL returned 0x200 115 fcntl F_SETFL to add O_APPEND and O_NONBLOCK 116 fcntl F_GETFL return current flags to see changes 117 fcntl F_GETFL returned 0x208 118 fcntl F_GETLK should return -1 119 fcntl F_SETLK should return -1 120 fcntl F_SETLKW should return -1 121 fcntl F_SETOWN should return -1 122 fcntl F_GETOWN should return -1 123 fcntl invalid argument should return -1 124 Status -1 125 opendir and readdir /b/myfile 126 opendir and readdir 127 chdir to /b/myfile 22 128 Performing stat of directory / 23 status for stat : 0, size of directory: 196 24 25 26 Opening directory / 27 name inode offset reclen type 28 dev 1 0 28 0x001c 29 a 1 28 28 0x001c 30 b 1 56 28 0x001c 31 c 1 84 28 0x001c 32 d 1 112 28 0x001c 33 e 1 140 28 0x001c 34 f 1 168 28 0x001c 35 129 status for stat : 0, size of directory: 2144 130 Open and print directory / 131 name inode offset reclen type 132 dev 1 0 268 0x010c 133 a 1 268 268 0x010c 134 b 1 536 268 0x010c 135 c 1 804 268 0x010c 136 d 1 1072 268 0x010c 137 e 1 1340 268 0x010c 138 f 1 1608 268 0x010c 139 many 1 1876 268 0x010c 140 mkdir /d/my_dir 141 Open /d/my_dir 142 remove /d/my_dir. 143 close /d/my_dir. 36 144 Opening directory /c 37 name inode offset reclen type 38 y 1 0 28 0x001c 39 z 1 28 28 0x001c 40 x 1 56 28 0x001c 41 145 name inode offset reclen type 146 y 1 0 268 0x010c 147 z 1 268 268 0x010c 148 x 1 536 268 0x010c 42 149 Opening directory /c/y 43 name inode offset reclen type 44 a3333 1 0 28 0x001c 45 j123 1 28 28 0x001c 46 150 name inode offset reclen type 151 a3333 1 0 268 0x010c 152 j123 1 268 268 0x010c 47 153 LSEEK to the start of the open directory 48 49 dev 1 0 28 0x001c50 a 1 28 28 0x001c51 b 1 56 28 0x001c52 c 1 84 28 0x001c53 d 1 112 28 0x001c54 e 1 140 28 0x001c55 f 1 168 28 0x001c56 154 name inode offset reclen type 155 dev 1 0 268 0x010c 156 a 1 268 268 0x010c 157 b 1 536 268 0x010c 158 c 1 804 268 0x010c 159 d 1 1072 268 0x010c 160 e 1 1340 268 0x010c 161 f 1 1608 268 0x010c 162 many 1 1876 268 0x010c 57 163 Rewinding directory 58 name inode offset reclen type 59 dev 1 0 28 0x001c 60 a 1 28 28 0x001c 61 b 1 56 28 0x001c 62 c 1 84 28 0x001c 63 d 1 112 28 0x001c 64 e 1 140 28 0x001c 65 f 1 168 28 0x001c 66 164 name inode offset reclen type 165 dev 1 0 268 0x010c 166 a 1 268 268 0x010c 167 b 1 536 268 0x010c 168 c 1 804 268 0x010c 169 d 1 1072 268 0x010c 170 e 1 1340 268 0x010c 171 f 1 1608 268 0x010c 172 many 1 1876 268 0x010c 173 Send rewinddir a NULL pointer 67 174 Seek directory 68 telldir() should report only sizeof(struct dirent) increments 69 in position. Sizeof(struct dirent): 2 8175 telldir() should report only sizeof(struct dirent) increments 176 in position. Sizeof(struct dirent): 268 70 177 seeked to 0 -- currently at 0 71 seeked to 7 -- currently at 0 72 seeked to 14 -- currently at 0 73 seeked to 21 -- currently at 0 74 seeked to 28 -- currently at 28 75 seeked to 35 -- currently at 28 76 seeked to 42 -- currently at 28 77 seeked to 49 -- currently at 28 78 seeked to 56 -- currently at 56 79 seeked to 63 -- currently at 56 80 seeked to 70 -- currently at 56 81 seeked to 77 -- currently at 56 82 seeked to 84 -- currently at 84 83 seeked to 91 -- currently at 84 84 seeked to 98 -- currently at 84 85 seeked to 105 -- currently at 84 86 seeked to 112 -- currently at 112 87 seeked to 119 -- currently at 112 88 seeked to 126 -- currently at 112 89 seeked to 133 -- currently at 112 90 seeked to 140 -- currently at 140 91 seeked to 147 -- currently at 140 92 seeked to 154 -- currently at 140 93 seeked to 161 -- currently at 140 94 seeked to 168 -- currently at 168 95 seeked to 175 -- currently at 168 96 seeked to 182 -- currently at 168 97 seeked to 189 -- currently at 168 98 seeked to 196 -- currently at 196 99 178 seeked to 67 -- currently at 0 179 seeked to 134 -- currently at 0 180 Send seekdir a NULL pointer 100 181 Closing directory 101 102 182 SCANDIR TEST 103 104 183 selection rule 1 105 184 scanning for any entry under directory /c 106 107 185 SCANDIR SELECT1 accepts nodename: y 108 186 SCANDIR SELECT1 accepts nodename: z 109 187 SCANDIR SELECT1 accepts nodename: x 110 111 188 scandir status: 3 112 189 Selected Node Name: y 113 190 Selected Node Name: z 114 191 Selected Node Name: x 115 116 192 selection rule 2 117 193 scanning for any entry under directory /c whose name = y 118 119 194 SCANDIR SELECT accepted nodename: y 120 195 SCANDIR SELECT rejected nodename: z 121 196 SCANDIR SELECT rejected nodename: x 122 123 197 scandir status: 1 124 198 Selected Node Name: y 125 126 199 SCANDIR with sorting 127 128 200 selection rule 1 129 201 scanning for any entry under directory /c 130 202 sort in ascending order 131 132 203 SCANDIR SELECT1 accepts nodename: y 133 204 SCANDIR SELECT1 accepts nodename: z 134 205 SCANDIR SELECT1 accepts nodename: x 135 136 206 scandir status: 3 137 207 Selected and Sorted Node Name: x 138 208 Selected and Sorted Node Name: y 139 209 Selected and Sorted Node Name: z 140 141 210 SCANDIR with sorting 142 143 211 selection rule 1 144 212 scanning for any entry under directory /c 145 213 sort in descending order 146 147 214 SCANDIR SELECT1 accepts nodename: y 148 215 SCANDIR SELECT1 accepts nodename: z … … 152 219 Selected and Sorted Node Name: y 153 220 Selected and Sorted Node Name: x 154 155 156 221 *** END OF READDIR TEST *** 222 223 224 225
Note: See TracChangeset
for help on using the changeset viewer.