Changeset fa3346f in rtems


Ignore:
Timestamp:
11/16/99 15:41:58 (24 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
d6c83529
Parents:
f9879915
Message:

Modified file to match seen output.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/tests/psxtests/psxreaddir/psxreaddir.scn

    rf9879915 rfa3346f  
    1 
    2 
    31*** READDIR TEST ***
    4 
    52chdir to the root directory
    63chdir() status : 0
    7 
    8 
    94Creating a series of directories under /
    105Creating directory: a      0 0    Success
     
    1914Creating directory: c/y/a3333      0 0    Success
    2015Creating directory: c/y/j123      0 0    Success
    21 
     16Create a lot of files
     17Create a
     18Create b
     19Create c
     20Create d
     21Create e
     22Create f
     23Create g
     24Create h
     25Create i
     26Create j
     27Create k
     28Create l
     29Create m
     30Create n
     31Create o
     32Create p
     33Create q
     34Create r
     35Create s
     36Create t
     37Create u
     38Create v
     39Create w
     40Create x
     41Create y
     42Create z
     43Create aa
     44Create ab
     45Create ac
     46Create ad
     47Create ae
     48Create af
     49Create ag
     50Create ah
     51Create ai
     52Create aj
     53Create ak
     54Create al
     55Create am
     56Create an
     57Create ao
     58Create ap
     59Create aq
     60Create ar
     61Open /many and print the directory
     62name               inode   offset   reclen  type
     63a                           1        0    268   0x010c
     64b                           1      268    268   0x010c
     65c                           1      536    268   0x010c
     66d                           1      804    268   0x010c
     67e                           1     1072    268   0x010c
     68f                           1     1340    268   0x010c
     69g                           1     1608    268   0x010c
     70h                           1     1876    268   0x010c
     71i                           1     2144    268   0x010c
     72j                           1     2412    268   0x010c
     73k                           1     2680    268   0x010c
     74l                           1     2948    268   0x010c
     75m                           1     3216    268   0x010c
     76n                           1     3484    268   0x010c
     77o                           1     3752    268   0x010c
     78p                           1     4020    268   0x010c
     79q                           1     4288    268   0x010c
     80r                           1     4556    268   0x010c
     81s                           1     4824    268   0x010c
     82t                           1     5092    268   0x010c
     83u                           1     5360    268   0x010c
     84v                           1     5628    268   0x010c
     85w                           1     5896    268   0x010c
     86x                           1     6164    268   0x010c
     87y                           1     6432    268   0x010c
     88z                           1     6700    268   0x010c
     89aa                          1     6968    268   0x010c
     90ab                          1     7236    268   0x010c
     91ac                          1     7504    268   0x010c
     92ad                          1     7772    268   0x010c
     93ae                          1     8040    268   0x010c
     94af                          1     8308    268   0x010c
     95ag                          1     8576    268   0x010c
     96ah                          1     8844    268   0x010c
     97ai                          1     9112    268   0x010c
     98aj                          1     9380    268   0x010c
     99ak                          1     9648    268   0x010c
     100al                          1     9916    268   0x010c
     101am                          1    10184    268   0x010c
     102an                          1    10452    268   0x010c
     103ao                          1    10720    268   0x010c
     104ap                          1    10988    268   0x010c
     105aq                          1    11256    268   0x010c
     106ar                          1    11524    268   0x010c
     107open /b/myfile
     108scandir a file status: -1
     109Open /b/new_file
     110fcntl F_SETFD should return 0
     111fcntl F_SETFD should return 1
     112fcntl F_DUPFD should return 0 -- skip until implemented
     113fcntl F_GETFL returns current flags
     114fcntl F_GETFL returned 0x200
     115fcntl F_SETFL to add O_APPEND and O_NONBLOCK
     116fcntl F_GETFL return current flags to see changes
     117fcntl F_GETFL returned 0x208
     118fcntl F_GETLK should return -1
     119fcntl F_SETLK should return -1
     120fcntl F_SETLKW should return -1
     121fcntl F_SETOWN should return -1
     122fcntl F_GETOWN should return -1
     123fcntl invalid argument should return -1
     124Status -1
     125opendir and readdir /b/myfile
     126opendir and readdir
     127chdir to /b/myfile
    22128Performing 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 
     129status for stat : 0, size of directory: 2144
     130Open and print directory /
     131name               inode   offset   reclen  type
     132dev                         1        0    268   0x010c
     133a                           1      268    268   0x010c
     134b                           1      536    268   0x010c
     135c                           1      804    268   0x010c
     136d                           1     1072    268   0x010c
     137e                           1     1340    268   0x010c
     138f                           1     1608    268   0x010c
     139many                        1     1876    268   0x010c
     140mkdir /d/my_dir
     141Open /d/my_dir
     142remove /d/my_dir.
     143close /d/my_dir.
    36144Opening 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 
     145name               inode   offset   reclen  type
     146y                           1        0    268   0x010c
     147z                           1      268    268   0x010c
     148x                           1      536    268   0x010c
    42149Opening directory /c/y
    43          name               inode   offset   reclen  type
    44     a3333                       1        0     28   0x001c
    45     j123                        1       28     28   0x001c
    46 
     150name               inode   offset   reclen  type
     151a3333                       1        0    268   0x010c
     152j123                        1      268    268   0x010c
    47153LSEEK to the start of the open directory
    48          name               inode   offset   reclen  type
    49     dev                         1        0     28   0x001c
    50     a                           1       28     28   0x001c
    51     b                           1       56     28   0x001c
    52     c                           1       84     28   0x001c
    53     d                           1      112     28   0x001c
    54     e                           1      140     28   0x001c
    55     f                           1      168     28   0x001c
    56 
     154name               inode   offset   reclen  type
     155dev                         1        0    268   0x010c
     156a                           1      268    268   0x010c
     157b                           1      536    268   0x010c
     158c                           1      804    268   0x010c
     159d                           1     1072    268   0x010c
     160e                           1     1340    268   0x010c
     161f                           1     1608    268   0x010c
     162many                        1     1876    268   0x010c
    57163Rewinding 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 
     164name               inode   offset   reclen  type
     165dev                         1        0    268   0x010c
     166a                           1      268    268   0x010c
     167b                           1      536    268   0x010c
     168c                           1      804    268   0x010c
     169d                           1     1072    268   0x010c
     170e                           1     1340    268   0x010c
     171f                           1     1608    268   0x010c
     172many                        1     1876    268   0x010c
     173Send rewinddir a NULL pointer
    67174Seek directory
    68 telldir() should report only sizeof(struct dirent) increments 
    69 in position. Sizeof(struct dirent): 28
     175telldir() should report only sizeof(struct dirent) increments
     176in position. Sizeof(struct dirent): 268
    70177seeked 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 
     178seeked to 67 -- currently at  0
     179seeked to 134 -- currently at  0
     180Send seekdir a NULL pointer
    100181Closing directory
    101 
    102182SCANDIR TEST
    103 
    104183selection rule 1
    105184scanning for any entry under directory /c
    106 
    107185SCANDIR SELECT1 accepts  nodename: y
    108186SCANDIR SELECT1 accepts  nodename: z
    109187SCANDIR SELECT1 accepts  nodename: x
    110 
    111188scandir status: 3
    112189Selected Node Name: y
    113190Selected Node Name: z
    114191Selected Node Name: x
    115 
    116192selection rule 2
    117193scanning for any entry under directory /c whose name = y
    118 
    119194SCANDIR SELECT accepted nodename: y
    120195SCANDIR SELECT rejected nodename: z
    121196SCANDIR SELECT rejected nodename: x
    122 
    123197scandir status: 1
    124198Selected Node Name: y
    125 
    126199SCANDIR with sorting
    127 
    128200selection rule 1
    129201scanning for any entry under directory /c
    130202sort in ascending order
    131 
    132203SCANDIR SELECT1 accepts  nodename: y
    133204SCANDIR SELECT1 accepts  nodename: z
    134205SCANDIR SELECT1 accepts  nodename: x
    135 
    136206scandir status: 3
    137207Selected and Sorted Node Name: x
    138208Selected and Sorted Node Name: y
    139209Selected and Sorted Node Name: z
    140 
    141210SCANDIR with sorting
    142 
    143211selection rule 1
    144212scanning for any entry under directory /c
    145213sort in descending order
    146 
    147214SCANDIR SELECT1 accepts  nodename: y
    148215SCANDIR SELECT1 accepts  nodename: z
     
    152219Selected and Sorted Node Name: y
    153220Selected and Sorted Node Name: x
    154 
    155 
    156221*** END OF READDIR TEST ***
     222
     223
     224
     225
  • testsuites/psxtests/psxreaddir/psxreaddir.scn

    rf9879915 rfa3346f  
    1 
    2 
    31*** READDIR TEST ***
    4 
    52chdir to the root directory
    63chdir() status : 0
    7 
    8 
    94Creating a series of directories under /
    105Creating directory: a      0 0    Success
     
    1914Creating directory: c/y/a3333      0 0    Success
    2015Creating directory: c/y/j123      0 0    Success
    21 
     16Create a lot of files
     17Create a
     18Create b
     19Create c
     20Create d
     21Create e
     22Create f
     23Create g
     24Create h
     25Create i
     26Create j
     27Create k
     28Create l
     29Create m
     30Create n
     31Create o
     32Create p
     33Create q
     34Create r
     35Create s
     36Create t
     37Create u
     38Create v
     39Create w
     40Create x
     41Create y
     42Create z
     43Create aa
     44Create ab
     45Create ac
     46Create ad
     47Create ae
     48Create af
     49Create ag
     50Create ah
     51Create ai
     52Create aj
     53Create ak
     54Create al
     55Create am
     56Create an
     57Create ao
     58Create ap
     59Create aq
     60Create ar
     61Open /many and print the directory
     62name               inode   offset   reclen  type
     63a                           1        0    268   0x010c
     64b                           1      268    268   0x010c
     65c                           1      536    268   0x010c
     66d                           1      804    268   0x010c
     67e                           1     1072    268   0x010c
     68f                           1     1340    268   0x010c
     69g                           1     1608    268   0x010c
     70h                           1     1876    268   0x010c
     71i                           1     2144    268   0x010c
     72j                           1     2412    268   0x010c
     73k                           1     2680    268   0x010c
     74l                           1     2948    268   0x010c
     75m                           1     3216    268   0x010c
     76n                           1     3484    268   0x010c
     77o                           1     3752    268   0x010c
     78p                           1     4020    268   0x010c
     79q                           1     4288    268   0x010c
     80r                           1     4556    268   0x010c
     81s                           1     4824    268   0x010c
     82t                           1     5092    268   0x010c
     83u                           1     5360    268   0x010c
     84v                           1     5628    268   0x010c
     85w                           1     5896    268   0x010c
     86x                           1     6164    268   0x010c
     87y                           1     6432    268   0x010c
     88z                           1     6700    268   0x010c
     89aa                          1     6968    268   0x010c
     90ab                          1     7236    268   0x010c
     91ac                          1     7504    268   0x010c
     92ad                          1     7772    268   0x010c
     93ae                          1     8040    268   0x010c
     94af                          1     8308    268   0x010c
     95ag                          1     8576    268   0x010c
     96ah                          1     8844    268   0x010c
     97ai                          1     9112    268   0x010c
     98aj                          1     9380    268   0x010c
     99ak                          1     9648    268   0x010c
     100al                          1     9916    268   0x010c
     101am                          1    10184    268   0x010c
     102an                          1    10452    268   0x010c
     103ao                          1    10720    268   0x010c
     104ap                          1    10988    268   0x010c
     105aq                          1    11256    268   0x010c
     106ar                          1    11524    268   0x010c
     107open /b/myfile
     108scandir a file status: -1
     109Open /b/new_file
     110fcntl F_SETFD should return 0
     111fcntl F_SETFD should return 1
     112fcntl F_DUPFD should return 0 -- skip until implemented
     113fcntl F_GETFL returns current flags
     114fcntl F_GETFL returned 0x200
     115fcntl F_SETFL to add O_APPEND and O_NONBLOCK
     116fcntl F_GETFL return current flags to see changes
     117fcntl F_GETFL returned 0x208
     118fcntl F_GETLK should return -1
     119fcntl F_SETLK should return -1
     120fcntl F_SETLKW should return -1
     121fcntl F_SETOWN should return -1
     122fcntl F_GETOWN should return -1
     123fcntl invalid argument should return -1
     124Status -1
     125opendir and readdir /b/myfile
     126opendir and readdir
     127chdir to /b/myfile
    22128Performing 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 
     129status for stat : 0, size of directory: 2144
     130Open and print directory /
     131name               inode   offset   reclen  type
     132dev                         1        0    268   0x010c
     133a                           1      268    268   0x010c
     134b                           1      536    268   0x010c
     135c                           1      804    268   0x010c
     136d                           1     1072    268   0x010c
     137e                           1     1340    268   0x010c
     138f                           1     1608    268   0x010c
     139many                        1     1876    268   0x010c
     140mkdir /d/my_dir
     141Open /d/my_dir
     142remove /d/my_dir.
     143close /d/my_dir.
    36144Opening 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 
     145name               inode   offset   reclen  type
     146y                           1        0    268   0x010c
     147z                           1      268    268   0x010c
     148x                           1      536    268   0x010c
    42149Opening directory /c/y
    43          name               inode   offset   reclen  type
    44     a3333                       1        0     28   0x001c
    45     j123                        1       28     28   0x001c
    46 
     150name               inode   offset   reclen  type
     151a3333                       1        0    268   0x010c
     152j123                        1      268    268   0x010c
    47153LSEEK to the start of the open directory
    48          name               inode   offset   reclen  type
    49     dev                         1        0     28   0x001c
    50     a                           1       28     28   0x001c
    51     b                           1       56     28   0x001c
    52     c                           1       84     28   0x001c
    53     d                           1      112     28   0x001c
    54     e                           1      140     28   0x001c
    55     f                           1      168     28   0x001c
    56 
     154name               inode   offset   reclen  type
     155dev                         1        0    268   0x010c
     156a                           1      268    268   0x010c
     157b                           1      536    268   0x010c
     158c                           1      804    268   0x010c
     159d                           1     1072    268   0x010c
     160e                           1     1340    268   0x010c
     161f                           1     1608    268   0x010c
     162many                        1     1876    268   0x010c
    57163Rewinding 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 
     164name               inode   offset   reclen  type
     165dev                         1        0    268   0x010c
     166a                           1      268    268   0x010c
     167b                           1      536    268   0x010c
     168c                           1      804    268   0x010c
     169d                           1     1072    268   0x010c
     170e                           1     1340    268   0x010c
     171f                           1     1608    268   0x010c
     172many                        1     1876    268   0x010c
     173Send rewinddir a NULL pointer
    67174Seek directory
    68 telldir() should report only sizeof(struct dirent) increments 
    69 in position. Sizeof(struct dirent): 28
     175telldir() should report only sizeof(struct dirent) increments
     176in position. Sizeof(struct dirent): 268
    70177seeked 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 
     178seeked to 67 -- currently at  0
     179seeked to 134 -- currently at  0
     180Send seekdir a NULL pointer
    100181Closing directory
    101 
    102182SCANDIR TEST
    103 
    104183selection rule 1
    105184scanning for any entry under directory /c
    106 
    107185SCANDIR SELECT1 accepts  nodename: y
    108186SCANDIR SELECT1 accepts  nodename: z
    109187SCANDIR SELECT1 accepts  nodename: x
    110 
    111188scandir status: 3
    112189Selected Node Name: y
    113190Selected Node Name: z
    114191Selected Node Name: x
    115 
    116192selection rule 2
    117193scanning for any entry under directory /c whose name = y
    118 
    119194SCANDIR SELECT accepted nodename: y
    120195SCANDIR SELECT rejected nodename: z
    121196SCANDIR SELECT rejected nodename: x
    122 
    123197scandir status: 1
    124198Selected Node Name: y
    125 
    126199SCANDIR with sorting
    127 
    128200selection rule 1
    129201scanning for any entry under directory /c
    130202sort in ascending order
    131 
    132203SCANDIR SELECT1 accepts  nodename: y
    133204SCANDIR SELECT1 accepts  nodename: z
    134205SCANDIR SELECT1 accepts  nodename: x
    135 
    136206scandir status: 3
    137207Selected and Sorted Node Name: x
    138208Selected and Sorted Node Name: y
    139209Selected and Sorted Node Name: z
    140 
    141210SCANDIR with sorting
    142 
    143211selection rule 1
    144212scanning for any entry under directory /c
    145213sort in descending order
    146 
    147214SCANDIR SELECT1 accepts  nodename: y
    148215SCANDIR SELECT1 accepts  nodename: z
     
    152219Selected and Sorted Node Name: y
    153220Selected and Sorted Node Name: x
    154 
    155 
    156221*** END OF READDIR TEST ***
     222
     223
     224
     225
Note: See TracChangeset for help on using the changeset viewer.