summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxstat
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/psxstat
parenttests: Use rtems_status_text() (diff)
downloadrtems-698c2e504a4382036b412e1b2798ca83432bbbab.tar.bz2
tests/psxtests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/psxtests/psxstat')
-rw-r--r--testsuites/psxtests/psxstat/main.c2
-rw-r--r--testsuites/psxtests/psxstat/test.c8
2 files changed, 6 insertions, 4 deletions
diff --git a/testsuites/psxtests/psxstat/main.c b/testsuites/psxtests/psxstat/main.c
index 42b2895819..310ac3d4f5 100644
--- a/testsuites/psxtests/psxstat/main.c
+++ b/testsuites/psxtests/psxstat/main.c
@@ -38,6 +38,8 @@ rtems_task Init(
#define CONFIGURE_MAXIMUM_TASKS 1
+#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
+
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define CONFIGURE_INIT_TASK_STACK_SIZE (RTEMS_MINIMUM_STACK_SIZE * 2)
diff --git a/testsuites/psxtests/psxstat/test.c b/testsuites/psxtests/psxstat/test.c
index 9c2effe101..826a3948b2 100644
--- a/testsuites/psxtests/psxstat/test.c
+++ b/testsuites/psxtests/psxstat/test.c
@@ -37,6 +37,8 @@
#include "primode.h"
+const char rtems_test_name[] = "PSXSTAT";
+
/* forward declarations to avoid warnings */
int test_main(void);
void stat_a_file_helper(const char *file, int follow_link);
@@ -556,7 +558,6 @@ void Cause_faults(void)
*/
#if 0
- printf("\n\nPass an invalid mode to chmod should fail with EPERM \n" );
status = chmod( Files[0], S_IFREG );
rtems_test_assert( status == -1 );
rtems_test_assert( errno == EPERM );
@@ -609,7 +610,6 @@ void Cause_faults(void)
* Verify it works properly.
*/
- printf( "\n\nchmod of %s to Read/Write\n", Directories[0] );
status = chmod( Directories[0], (S_IXGRP | S_IXOTH) );
rtems_test_assert( status == 0 );
@@ -820,7 +820,7 @@ int main(
rtems_time_of_day time;
int status;
- puts( "\n\n*** STAT TEST 01 ***" );
+ TEST_BEGIN();
build_time( &time, 12, 31, 1988, 9, 0, 0, 0 );
sc = rtems_clock_set( &time );
@@ -941,6 +941,6 @@ int main(
test_statvfs();
- puts( "\n\n*** END OF STAT TEST 01 ***" );
+ TEST_END();
rtems_test_exit(0);
}