summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxfile01/test.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-07-22 20:23:21 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-07-22 20:23:21 +0000
commit50e4a1b16e00f046292ff5f5c9bf587b2912c3dd (patch)
treef501d2ab5a891e73bb11fd2f2b6912a8237d1b5f /testsuites/psxtests/psxfile01/test.c
parent2011-07-22 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-50e4a1b16e00f046292ff5f5c9bf587b2912c3dd.tar.bz2
2011-07-22 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1839/filesystem * psxfchx01/init.c, psxfchx01/psxfchx01.scn, psxfile01/psxfile01.scn, psxfile01/test.c: Update test to reflect new status codes.
Diffstat (limited to 'testsuites/psxtests/psxfile01/test.c')
-rw-r--r--testsuites/psxtests/psxfile01/test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/testsuites/psxtests/psxfile01/test.c b/testsuites/psxtests/psxfile01/test.c
index ad0a3319f1..dd6e4d0095 100644
--- a/testsuites/psxtests/psxfile01/test.c
+++ b/testsuites/psxtests/psxfile01/test.c
@@ -384,10 +384,10 @@ int main(
status = fcntl( fd, F_SETFD, 0 );
rtems_test_assert( status == 0 );
- puts( "attempt to read from /tmp/bha - expect EINVAL" );
+ puts( "attempt to read from /tmp/bha - expect EBADF" );
status = read( fd, buffer, 10 );
rtems_test_assert( status == -1 );
- rtems_test_assert( errno == EINVAL );
+ rtems_test_assert( errno == EBADF );
puts( "closing and unlinking /tmp/bha" );
status = close( fd );
@@ -398,10 +398,10 @@ int main(
fd = open( "/tmp/bha", O_CREAT | O_RDONLY, S_IRWXU|S_IRWXG|S_IRWXO );
rtems_test_assert( fd != -1 );
- puts( "attempt to read from /tmp/bha - expect EINVAL" );
+ puts( "attempt to read from /tmp/bha - expect EBADF" );
status = write( fd, buffer, 10 );
rtems_test_assert( status == -1 );
- rtems_test_assert( errno == EINVAL );
+ rtems_test_assert( errno == EBADF );
puts( "closing and unlinking /tmp/bha" );
status = close( fd );