diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-06-12 15:00:15 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-06-12 15:00:15 +0000 |
commit | df49c60c9671e4a28e636964d744c1f59fb6cb68 (patch) | |
tree | eabd85e189514ad412a35414ba5d483dcda3ef1f /testsuites/psxtests/psxfile01/test.c | |
parent | Purged as many egcs references as possible. (diff) | |
download | rtems-df49c60c9671e4a28e636964d744c1f59fb6cb68.tar.bz2 |
Merged from 4.5.0-beta3a
Diffstat (limited to '')
-rw-r--r-- | testsuites/psxtests/psxfile01/test.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/testsuites/psxtests/psxfile01/test.c b/testsuites/psxtests/psxfile01/test.c index 3d90e6e712..d935babd9f 100644 --- a/testsuites/psxtests/psxfile01/test.c +++ b/testsuites/psxtests/psxfile01/test.c @@ -388,8 +388,13 @@ int main( * triply indirect blocks. */ - test_extend( "/tmp/joel", max_size - 1 ); - test_cat( "/tmp/joel", max_size / 2, 1024 ); + if ( max_size < 300 * 1024 ) { + test_extend( "/tmp/joel", max_size - 1 ); + test_cat( "/tmp/joel", max_size / 2, 1024 ); + } else { + printf( "Skipping maximum file size test since max_size is %d bytes\n", max_size ); + puts("That is likely to be bigger than the available RAM on many targets." ); + } stat_a_file( "/tmp/joel" ); @@ -429,7 +434,7 @@ int main( status = rtems_task_wake_after( 1 * TICKS_PER_SECOND ); rewind( file ); while ( fgets(buffer, 128, file) ) - printf( buffer ); + printf( "%s", buffer ); /* * Verify only atime changed for a read. |