diff options
Diffstat (limited to 'testsuites/psxtests/psxfile01/test.c')
-rw-r--r-- | testsuites/psxtests/psxfile01/test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/testsuites/psxtests/psxfile01/test.c b/testsuites/psxtests/psxfile01/test.c index abc9295053..8fcb281307 100644 --- a/testsuites/psxtests/psxfile01/test.c +++ b/testsuites/psxtests/psxfile01/test.c @@ -624,8 +624,9 @@ since new path is not valid"); rtems_test_assert( ctime1 != ctime2); /* try to truncate the console and see what happens */ + errno = 0; status = truncate( "/dev/console", 40 ); - rtems_test_assert( status == 0 ); + rtems_test_assert( status == 0 || ( status == -1 && errno == EINVAL ) ); puts( "truncate /tmp/j to length of 0" ); status = truncate( "/tmp/j", 0 ); |