Back to home page

LXR

 
 

    


Warning, /testsuites/psxtests/psxreaddir/psxreaddir.scn is written in an unsupported language. File is not indexed.

0001 *** READDIR TEST ***
0002 chdir to the root directory
0003 chdir() status : 0
0004 Creating a series of directories under /
0005 Creating directory: a      0 0    Success
0006 Creating directory: b      0 0    Success
0007 Creating directory: c      0 0    Success
0008 Creating directory: d      0 0    Success
0009 Creating directory: e      0 0    Success
0010 Creating directory: f      0 0    Success
0011 Creating directory: c/y      0 0    Success
0012 Creating directory: c/z      0 0    Success
0013 Creating directory: c/x      0 0    Success
0014 Creating directory: c/y/a3333      0 0    Success
0015 Creating directory: c/y/j123      0 0    Success
0016 Create a lot of files
0017 Create a
0018 Create b
0019 Create c
0020 Create d
0021 Create e
0022 Create f
0023 Create g
0024 Create h
0025 Create i
0026 Create j
0027 Create k
0028 Create l
0029 Create m
0030 Create n
0031 Create o
0032 Create p
0033 Create q
0034 Create r
0035 Create s
0036 Create t
0037 Create u
0038 Create v
0039 Create w
0040 Create x
0041 Create y
0042 Create z
0043 Create aa
0044 Create ab
0045 Create ac
0046 Create ad
0047 Create ae
0048 Create af
0049 Create ag
0050 Create ah
0051 Create ai
0052 Create aj
0053 Create ak
0054 Create al
0055 Create am
0056 Create an
0057 Create ao
0058 Create ap
0059 Create aq
0060 Create ar
0061 Open /many and print the directory
0062 name               inode   offset   reclen  type
0063 a                          17        0    268   0x010c
0064 b                          18      268    268   0x010c
0065 c                          19      536    268   0x010c
0066 d                          20      804    268   0x010c
0067 e                          21     1072    268   0x010c
0068 f                          22     1340    268   0x010c
0069 g                          23     1608    268   0x010c
0070 h                          24     1876    268   0x010c
0071 i                          25     2144    268   0x010c
0072 j                          26     2412    268   0x010c
0073 k                          27     2680    268   0x010c
0074 l                          28     2948    268   0x010c
0075 m                          29     3216    268   0x010c
0076 n                          30     3484    268   0x010c
0077 o                          31     3752    268   0x010c
0078 p                          32     4020    268   0x010c
0079 q                          33     4288    268   0x010c
0080 r                          34     4556    268   0x010c
0081 s                          35     4824    268   0x010c
0082 t                          36     5092    268   0x010c
0083 u                          37     5360    268   0x010c
0084 v                          38     5628    268   0x010c
0085 w                          39     5896    268   0x010c
0086 x                          40     6164    268   0x010c
0087 y                          41     6432    268   0x010c
0088 z                          42     6700    268   0x010c
0089 aa                         43     6968    268   0x010c
0090 ab                         44     7236    268   0x010c
0091 ac                         45     7504    268   0x010c
0092 ad                         46     7772    268   0x010c
0093 ae                         47     8040    268   0x010c
0094 af                         48     8308    268   0x010c
0095 ag                         49     8576    268   0x010c
0096 ah                         50     8844    268   0x010c
0097 ai                         51     9112    268   0x010c
0098 aj                         52     9380    268   0x010c
0099 ak                         53     9648    268   0x010c
0100 al                         54     9916    268   0x010c
0101 am                         55    10184    268   0x010c
0102 an                         56    10452    268   0x010c
0103 ao                         57    10720    268   0x010c
0104 ap                         58    10988    268   0x010c
0105 aq                         59    11256    268   0x010c
0106 ar                         60    11524    268   0x010c
0107 open /b/myfile
0108 scandir a file status: -1
0109 Open /b/new_file
0110 fcntl F_SETFD should return 0
0111 fcntl F_SETFD should return 1
0112 fcntl F_DUPFD should return 0 -- skip until implemented
0113 fcntl F_GETFL returns current flags
0114 fcntl F_GETFL returned 0x200
0115 fcntl F_SETFL to add O_APPEND and O_NONBLOCK
0116 fcntl F_GETFL return current flags to see changes
0117 fcntl F_GETFL returned 0x1208
0118 fcntl F_GETLK should return -1
0119 fcntl F_SETLK should return -1
0120 fcntl F_SETLKW should return -1
0121 fcntl F_SETOWN should return -1
0122 fcntl F_GETOWN should return -1
0123 fcntl invalid argument should return -1
0124 Status -1
0125 opendir and readdir /b/myfile
0126 opendir and readdir
0127 chdir to /b/myfile
0128 Performing stat of directory /
0129 status for stat : 0, size of directory: 2144
0130 Open and print directory /
0131 name               inode   offset   reclen  type
0132 dev                         2        0    268   0x010c
0133 a                           5      268    268   0x010c
0134 b                           6      536    268   0x010c
0135 c                           7      804    268   0x010c
0136 d                           8     1072    268   0x010c
0137 e                           9     1340    268   0x010c
0138 f                          10     1608    268   0x010c
0139 many                       16     1876    268   0x010c
0140 mkdir /d/my_dir
0141 Open /d/my_dir
0142 remove /d/my_dir.
0143 close /d/my_dir.
0144 Opening directory /c
0145 name               inode   offset   reclen  type
0146 y                          11        0    268   0x010c
0147 z                          12      268    268   0x010c
0148 x                          13      536    268   0x010c
0149 Opening directory /c/y
0150 name               inode   offset   reclen  type
0151 a3333                      14        0    268   0x010c
0152 j123                       15      268    268   0x010c
0153 LSEEK to the start of the open directory
0154 name               inode   offset   reclen  type
0155 dev                         2        0    268   0x010c
0156 a                           5      268    268   0x010c
0157 b                           6      536    268   0x010c
0158 c                           7      804    268   0x010c
0159 d                           8     1072    268   0x010c
0160 e                           9     1340    268   0x010c
0161 f                          10     1608    268   0x010c
0162 many                       16     1876    268   0x010c
0163 Rewinding directory
0164 name               inode   offset   reclen  type
0165 dev                         2        0    268   0x010c
0166 a                           5      268    268   0x010c
0167 b                           6      536    268   0x010c
0168 c                           7      804    268   0x010c
0169 d                           8     1072    268   0x010c
0170 e                           9     1340    268   0x010c
0171 f                          10     1608    268   0x010c
0172 many                       16     1876    268   0x010c
0173 Seek directory
0174 telldir() should report only sizeof(struct dirent) increments
0175 in position. Sizeof(struct dirent): 268
0176 seeked to  0 -- currently at  0
0177 seeked to 67 -- currently at  0
0178 seeked to 134 -- currently at  0
0179 Send seekdir a NULL pointer
0180 Closing directory
0181 SCANDIR TEST
0182 selection rule 1
0183 scanning for any entry under directory /c
0184 SCANDIR SELECT1 accepts  nodename: y
0185 SCANDIR SELECT1 accepts  nodename: z
0186 SCANDIR SELECT1 accepts  nodename: x
0187 scandir status: 3
0188 Selected Node Name: y
0189 Selected Node Name: z
0190 Selected Node Name: x
0191 selection rule 2
0192 scanning for any entry under directory /c whose name = y
0193 SCANDIR SELECT accepted nodename: y
0194 SCANDIR SELECT rejected nodename: z
0195 SCANDIR SELECT rejected nodename: x
0196 scandir status: 1
0197 Selected Node Name: y
0198 SCANDIR with sorting
0199 selection rule 1
0200 scanning for any entry under directory /c
0201 sort in ascending order
0202 SCANDIR SELECT1 accepts  nodename: y
0203 SCANDIR SELECT1 accepts  nodename: z
0204 SCANDIR SELECT1 accepts  nodename: x
0205 scandir status: 3
0206 Selected and Sorted Node Name: x
0207 Selected and Sorted Node Name: y
0208 Selected and Sorted Node Name: z
0209 SCANDIR with sorting
0210 selection rule 1
0211 scanning for any entry under directory /c
0212 sort in descending order
0213 SCANDIR SELECT1 accepts  nodename: y
0214 SCANDIR SELECT1 accepts  nodename: z
0215 SCANDIR SELECT1 accepts  nodename: x
0216 scandir status: 3
0217 Selected and Sorted Node Name: z
0218 Selected and Sorted Node Name: y
0219 Selected and Sorted Node Name: x
0220 Validate readdir across mount point
0221 name               inode   offset   reclen  type
0222 should_be_hidden           65        0    268   0x010c
0223 Attempting to mount IMFS file system at /imfs
0224 create /imfs/testdir and /imfs/testdir/testsubdir
0225 name               inode   offset   reclen  type
0226 testdir                     2        0    268   0x010c
0227 name               inode   offset   reclen  type
0228 testdir                     2        0    268   0x010c
0229 name               inode   offset   reclen  type
0230 testdir                     2        0    268   0x010c
0231 name               inode   offset   reclen  type
0232 testsubdir                  3        0    268   0x010c
0233 name               inode   offset   reclen  type
0234 testdir                     2        0    268   0x010c
0235 *** END OF READDIR TEST ***