diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-07-27 13:54:56 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-07-27 13:54:56 +0000 |
commit | a7d32373148109accbd532a4425bc063617d6203 (patch) | |
tree | 2e793045248cd0834b55c235a92a7c0144a24f33 /testsuites/libtests/devfs04/init.c | |
parent | Apply missing commit. (diff) | |
download | rtems-a7d32373148109accbd532a4425bc063617d6203.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'testsuites/libtests/devfs04/init.c')
-rw-r--r-- | testsuites/libtests/devfs04/init.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/testsuites/libtests/devfs04/init.c b/testsuites/libtests/devfs04/init.c index 01ac7feee6..e89708a7c6 100644 --- a/testsuites/libtests/devfs04/init.c +++ b/testsuites/libtests/devfs04/init.c @@ -18,6 +18,7 @@ #include <sys/stat.h> #include <fcntl.h> #include "test_driver.h" +#include <rtems/devnull.h> rtems_task Init( rtems_task_argument argument @@ -60,8 +61,10 @@ rtems_task Init( rtems_test_assert( status == -1 ); rtems_test_assert( errno == ENOSYS ); - puts( "*** END OF TEST DEVFS04 ***" ); + status = mknod( "/dev/null", 0777 | S_IFCHR, 0LL ); + rtems_test_assert( status == 0 ); + puts( "*** END OF TEST DEVFS04 ***" ); rtems_test_exit(0); } |