summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-09-16 12:58:06 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-09-19 07:52:33 +0200
commit55e0be36069942e0343e406615a3b1744cf7d6b3 (patch)
treea260825ed4914c1e96683924bfaa04a00bc50e8b /testsuites/psxtests
parentlibtests/devfs: Use printk() (diff)
downloadrtems-55e0be36069942e0343e406615a3b1744cf7d6b3.tar.bz2
termios: Use IMFS nodes for new Termios devices
This makes the new Termios devices independent of device major/minor numbers. It enables BSP independent Termios device drivers which may reside in the cpukit domain. These drivers require an IMFS and do not work with the device file system. However, the device file system should go away in the future.
Diffstat (limited to 'testsuites/psxtests')
-rw-r--r--testsuites/psxtests/psxfile01/test.c3
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 );