summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxpipe01
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-25 08:06:16 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-25 08:06:16 +0100
commit698c2e504a4382036b412e1b2798ca83432bbbab (patch)
tree114a7c00b534d6cecd4566b5d1c892c79b899268 /testsuites/psxtests/psxpipe01
parenttests: Use rtems_status_text() (diff)
downloadrtems-698c2e504a4382036b412e1b2798ca83432bbbab.tar.bz2
tests/psxtests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/psxtests/psxpipe01')
-rw-r--r--testsuites/psxtests/psxpipe01/init.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxpipe01/init.c b/testsuites/psxtests/psxpipe01/init.c
index b8b99aa26b..145cf81a80 100644
--- a/testsuites/psxtests/psxpipe01/init.c
+++ b/testsuites/psxtests/psxpipe01/init.c
@@ -21,6 +21,8 @@
#include <rtems/libcsupport.h>
#include <rtems/malloc.h>
+const char rtems_test_name[] = "PSXPIPE 1";
+
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument ignored);
@@ -33,7 +35,7 @@ rtems_task Init(
int status = 0;
void *opaque = NULL;
- puts( "*** TEST POSIX PIPE CREATION - 01 ***" );
+ TEST_BEGIN();
puts( "Init - attempt to create pipe -- expect EFAULT" );
status = pipe( NULL );
@@ -91,7 +93,7 @@ rtems_task Init(
status |= unlink( "/file01" );
rtems_test_assert( status == 0 );
- puts( "*** END OF TEST POSIX PIPE CREATION - 01 ***" );
+ TEST_END();
rtems_test_exit( 0 );
}
@@ -104,6 +106,8 @@ rtems_task Init(
#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 5
#define CONFIGURE_MAXIMUM_TASKS 1
+#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
+
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define CONFIGURE_PIPES_ENABLED