diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-04-28 15:01:51 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-04-28 15:01:51 +0000 |
commit | cb930b4dae287c6712a93190defc599748ae47b0 (patch) | |
tree | 3d5b8e8b39a94d6bc76d3b2ca6563885fe8e5cf4 /testsuites | |
parent | cbe57ec919310139084f57641f136c01ea15307d (diff) |
2010-04-28 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxfile01/test.c: Add check for errno on chdir(NULL).
Diffstat (limited to 'testsuites')
-rw-r--r-- | testsuites/psxtests/ChangeLog | 4 | ||||
-rw-r--r-- | testsuites/psxtests/psxfile01/test.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/testsuites/psxtests/ChangeLog b/testsuites/psxtests/ChangeLog index 08b58a0dc0..7cfeac08c6 100644 --- a/testsuites/psxtests/ChangeLog +++ b/testsuites/psxtests/ChangeLog @@ -1,3 +1,7 @@ +2010-04-28 Joel Sherrill <joel.sherrill@oarcorp.com> + + * psxfile01/test.c: Add check for errno on chdir(NULL). + 2010-04-25 Joel Sherrill <joel.sherrill@oarcorp.com> * psxrdwrv/test.c: Use SIZE_MAX not SSIZE_MAX. diff --git a/testsuites/psxtests/psxfile01/test.c b/testsuites/psxtests/psxfile01/test.c index a9efab4c76..79d115496a 100644 --- a/testsuites/psxtests/psxfile01/test.c +++ b/testsuites/psxtests/psxfile01/test.c @@ -10,7 +10,7 @@ * /dev * /dev/XXX [where XXX includes at least console] * - * COPYRIGHT (c) 1989-2009. + * COPYRIGHT (c) 1989-2010. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -220,6 +220,7 @@ int main( /* test rtems_filesystem_evaluate_path by sending NULL path */ status = chdir( NULL ); rtems_test_assert( status == -1 ); + rtems_test_assert( errno == EFAULT ); /* * Now switch gears and exercise rmdir(). |