summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-11-02 16:38:19 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-11-02 16:38:19 +0000
commit78edd4446b55fa9a1df5270736585b2b6d135028 (patch)
treeba788750ccda1a58537668e9fab7d911eda19916 /testsuites/psxtests
parentAdded more proper checking of F_GETFL and F_SETFL. (diff)
downloadrtems-78edd4446b55fa9a1df5270736585b2b6d135028.tar.bz2
Minor fixes to make screen match a bit better.
Diffstat (limited to 'testsuites/psxtests')
-rw-r--r--testsuites/psxtests/psxfile01/psxfile01.scn20
-rw-r--r--testsuites/psxtests/psxfile01/test.c6
2 files changed, 15 insertions, 11 deletions
diff --git a/testsuites/psxtests/psxfile01/psxfile01.scn b/testsuites/psxtests/psxfile01/psxfile01.scn
index 3c69d40fb8..22923a2369 100644
--- a/testsuites/psxtests/psxfile01/psxfile01.scn
+++ b/testsuites/psxtests/psxfile01/psxfile01.scn
@@ -8,7 +8,7 @@
*************** End of Dump ***************
stat of /dev/console
....st_dev (0x0:0x0)
-....st_ino 3
+....st_ino 3 may vary by small amount
....mode = 00020771
....nlink = 1
....uid = 0
@@ -52,8 +52,9 @@ mknod /tmp/joel
(10)the first write!!!
-stat( /tmp/joel ) returned st_dev (0x0:0x0)
-....st_ino 10
+stat( /tmp/joel ) returned
+....st_dev (0x0:0x0)
+....st_ino 10 may vary by small amount
....mode = 00100700
....nlink = 1
....uid = 0
@@ -81,8 +82,9 @@ mknod /tmp/joel
(513)the first write!!!
(139743)
-stat( /tmp/joel ) returned st_dev (0x0:0x0)
-....st_ino 11
+stat( /tmp/joel ) returned
+....st_dev (0x0:0x0)
+....st_ino 11 may vary by small amount
....mode = 00100700
....nlink = 1
....uid = 0
@@ -93,7 +95,7 @@ stat( /tmp/joel ) returned st_dev (0x0:0x0)
stat of /tmp/j
stat(/tmp/j) returned -1 (errno=2)
....st_dev (0x0:0x0)
-....st_ino 3
+....st_ino 3 may vary by small amount
....mode = 00020771
....nlink = 1
....uid = 0
@@ -109,7 +111,7 @@ fprintf to /tmp/j
(4) 26 characters written to the file
(5) 26 characters written to the file
....st_dev (0x0:0x0)
-....st_ino 12
+....st_ino 12 may vary by small amount
....mode = 00100660
....nlink = 1
....uid = 0
@@ -123,7 +125,7 @@ This is call 3 to fprintf
This is call 4 to fprintf
This is call 5 to fprintf
....st_dev (0x0:0x0)
-....st_ino 12
+....st_ino 12 may vary by small amount
....mode = 00100660
....nlink = 1
....uid = 0
@@ -149,7 +151,7 @@ This is call 5 to fprintf
*************** End of Dump ***************
truncate /tmp/j to length of 40
....st_dev (0x0:0x0)
-....st_ino 12
+....st_ino 12 may vary by small amount
....mode = 00100660
....nlink = 1
....uid = 0
diff --git a/testsuites/psxtests/psxfile01/test.c b/testsuites/psxtests/psxfile01/test.c
index 4b084a81d1..fa94193f10 100644
--- a/testsuites/psxtests/psxfile01/test.c
+++ b/testsuites/psxtests/psxfile01/test.c
@@ -77,7 +77,8 @@ void dump_statbuf( struct stat *buf )
rtems_filesystem_split_dev_t( buf->st_rdev, major2, minor2 );
printf( "....st_dev (0x%x:0x%x)\n", major1, minor1 );
- printf( "....st_ino %x\n", buf->st_ino );
+ printf( "....st_ino %x may vary by small amount\n",
+ (unsigned int) buf->st_ino );
printf( "....mode = %08o\n", buf->st_mode );
printf( "....nlink = %d\n", buf->st_nlink );
@@ -112,6 +113,7 @@ void stat_a_file(
if ( status == -1 ) {
printf( ": %s\n", strerror( errno ) );
} else {
+ puts("");
dump_statbuf( &statbuf );
}
@@ -133,7 +135,7 @@ int main(
{
int status;
int max_size;
- int fd, fd1;
+ int fd;
int i;
struct stat buf;
char buffer[128];