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/psxtests/psxfile01 | |
parent | 2010-04-28 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-cb930b4dae287c6712a93190defc599748ae47b0.tar.bz2 |
2010-04-28 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxfile01/test.c: Add check for errno on chdir(NULL).
Diffstat (limited to 'testsuites/psxtests/psxfile01')
-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 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(). |