Warning, /testsuites/psxtests/psxfile01/psxfile01.scn is written in an unsupported language. File is not indexed.
0001 *** BEGIN OF TEST PSXFILE 1 ***
0002 stat of /dev/console
0003 ....st_dev (0xfffe:0x0)
0004 ....st_rdev (0x0:0x0)
0005 ....st_ino 4 may vary by small amount
0006 ....mode = 00020755
0007 ....nlink = 1
0008 ....uid = 0
0009 ....gid = 0
0010 ....atime = Fri Jan 1 00:00:00 1988
0011 ....mtime = Fri Jan 1 00:00:00 1988
0012 ....ctime = Fri Jan 1 00:00:00 1988
0013 ....st_blksize 0
0014 ....st_blocks 0
0015
0016 mkdir /dev/tty
0017
0018 mkdir /usr
0019 mkdir /etc
0020 mkdir /tmp
0021 mkdir /tmp/..
0022 mkdir /tmp/
0023 mkdir /j/j1
0024 mkdir tmp
0025
0026 rmdir /usr
0027 rmdir /dev
0028 rmdir /fred
0029 rmdir /tmp/bha
0030 mknod /dev/test_console
0031 mknod /dev/tty/S3
0032 mknod /etc/passwd
0033 mkdir /tmp/my_dir
0034 mkfifo /c/my_dir
0035 mkdir /etc/passwd/j
0036 open /tmp/joel - should fail with ENOENT
0037 open /tmp/j
0038 open returned file descriptor 3
0039 close /tmp/j
0040 close /tmp/j again
0041 unlink /tmp/j
0042 unlink /tmp
0043 create and close /tmp/tom
0044 Attempt to recreate /tmp/tom
0045 create /tmp/john
0046 Attempt to create a file, open in read-only mode and truncate it
0047 Exercise the reentrant version _link_r -- Expect ENOENT
0048 Unlink /tmp/bha using the reentrant version -- OK
0049 mknod with bad type - expect EINVAL
0050 open /tmp/bha in write only mode -- OK
0051 attempt fcntl on opened file -- OK
0052 attempt to read from /tmp/bha - expect EBADF
0053 closing and unlinking /tmp/bha
0054 open /tmp/bha in read only mode -- OK
0055 attempt to read from /tmp/bha - expect EBADF
0056 closing and unlinking /tmp/bha
0057 attempt to read from an unopened filedes - expect EBADF
0058 attempt to write to an unopened filedes - expect EBADF
0059 mknod /tmp/joel
0060 (0)the first write!!!
0061
0062 rename /tmp/joel to /tmp/drjoel
0063 rename /tmp/drjoel to /tmp/joel
0064 rename /tmp/drjoel to /tmp/joel - Should result in an error since old path is not valid
0065 rename /tmp/joel to /tmp/drjoel/joel - Should result in an error since new path is not valid
0066 changing dir to /tmp
0067 rename joel to drjoel
0068 rename drjoel to joel
0069 creating directory /imfs
0070 creating directory /imfs/hidden_on_mount
0071 mounting filesystem with IMFS_ops at /imfs
0072 creating directory /imfs/test (on newly mounted filesystem)
0073 attempt to rename directory joel to /imfs/test/joel - should fail with EXDEV
0074 changing dir to /
0075 attempt to rename across filesystem, with old path having a parent node
0076 attempt to rename tmp/joel to /imfs/test/joel
0077 End of _rename_r tests
0078 (10)the first write!!!
0079
0080 stat( /tmp/joel ) returned
0081 ....st_dev (0xfffe:0x0)
0082 ....st_rdev (0x0:0x0)
0083 ....st_ino 17 may vary by small amount
0084 ....mode = 00100700
0085 ....nlink = 1
0086 ....uid = 0
0087 ....gid = 0
0088 ....atime = Sat Dec 31 09:00:00 1988
0089 ....mtime = Sat Dec 31 09:00:00 1988
0090 ....ctime = Sat Dec 31 09:00:00 1988
0091 ....st_blksize 80
0092 ....st_blocks 0
0093 unlink /tmp/joel
0094 unlink /tmp/joel
0095 mknod /tmp/joel
0096 (514)the first write!!!
0097
0098 (513)the first write!!!
0099
0100 (24)the first write!!!
0101
0102 (2)the first write!!!
0103
0104 (1)the first write!!!
0105
0106 (0)the first write!!!
0107
0108 (0)rst write!!!
0109
0110 (513)the first write!!!
0111
0112 Skipping maximum file size test since max_size is 4329344 bytes
0113 That is likely to be bigger than the available RAM on many targets.
0114 stat( /tmp/joel ) returned
0115 ....st_dev (0xfffe:0x0)
0116 ....st_rdev (0x0:0x0)
0117 ....st_ino 18 may vary by small amount
0118 ....mode = 00100700
0119 ....nlink = 1
0120 ....uid = 0
0121 ....gid = 0
0122 ....atime = Sat Dec 31 09:00:00 1988
0123 ....mtime = Sat Dec 31 09:00:00 1988
0124 ....ctime = Sat Dec 31 09:00:00 1988
0125 ....st_blksize 80
0126 ....st_blocks 0
0127 stat of /tmp/j
0128 stat(/tmp/j) returned -1 (errno=2)
0129 ....st_dev (0x0:0x0)
0130 ....st_rdev (0x0:0x0)
0131 ....st_ino 0 may vary by small amount
0132 ....mode = 00000000
0133 ....nlink = 0
0134 ....uid = 0
0135 ....gid = 0
0136 ....atime = Thu Jan 1 00:00:00 1970
0137 ....mtime = Thu Jan 1 00:00:00 1970
0138 ....ctime = Thu Jan 1 00:00:00 1970
0139 ....st_blksize 0
0140 ....st_blocks 0
0141 fopen of /tmp/j
0142 fprintf to /tmp/j
0143 (1) 26 characters written to the file
0144 (2) 26 characters written to the file
0145 (3) 26 characters written to the file
0146 (4) 26 characters written to the file
0147 (5) 26 characters written to the file
0148 ....st_dev (0xfffe:0x0)
0149 ....st_rdev (0x0:0x0)
0150 ....st_ino 19 may vary by small amount
0151 ....mode = 00100644
0152 ....nlink = 1
0153 ....uid = 0
0154 ....gid = 0
0155 ....atime = Sat Dec 31 09:00:00 1988
0156 ....mtime = Sat Dec 31 09:00:00 1988
0157 ....ctime = Sat Dec 31 09:00:00 1988
0158 ....st_blksize 80
0159 ....st_blocks 0
0160 This is call 1 to fprintf
0161 This is call 2 to fprintf
0162 This is call 3 to fprintf
0163 This is call 4 to fprintf
0164 This is call 5 to fprintf
0165 ....st_dev (0xfffe:0x0)
0166 ....st_rdev (0x0:0x0)
0167 ....st_ino 19 may vary by small amount
0168 ....mode = 00100644
0169 ....nlink = 1
0170 ....uid = 0
0171 ....gid = 0
0172 ....atime = Sat Dec 31 09:00:01 1988
0173 ....mtime = Sat Dec 31 09:00:00 1988
0174 ....ctime = Sat Dec 31 09:00:00 1988
0175 ....st_blksize 80
0176 ....st_blocks 0
0177 truncate /tmp/j to length of 40
0178 ....st_dev (0xfffe:0x0)
0179 ....st_rdev (0x0:0x0)
0180 ....st_ino 19 may vary by small amount
0181 ....mode = 00100644
0182 ....nlink = 1
0183 ....uid = 0
0184 ....gid = 0
0185 ....atime = Sat Dec 31 09:00:01 1988
0186 ....mtime = Sat Dec 31 09:00:02 1988
0187 ....ctime = Sat Dec 31 09:00:02 1988
0188 ....st_blksize 80
0189 ....st_blocks 0
0190 truncate /tmp/j to length of 0
0191 truncate /tmp to length of 0 should fail with EISDIR
0192
0193 21: Is a directory
0194 Writing First File
0195 Writing Second File
0196 (0)this is a test line
0197 this is a test line
0198
0199 (0)this is a test line
0200 this is a test line
0201
0202 *** END OF TEST PSXFILE 1 ***