diff options
Diffstat (limited to 'testsuites/psxtests/psxchroot01')
-rw-r--r-- | testsuites/psxtests/psxchroot01/Makefile.am | 2 | ||||
-rw-r--r-- | testsuites/psxtests/psxchroot01/main.c | 3 | ||||
-rw-r--r-- | testsuites/psxtests/psxchroot01/test.c | 3 |
3 files changed, 6 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxchroot01/Makefile.am b/testsuites/psxtests/psxchroot01/Makefile.am index f07e645dfd..90c70823bb 100644 --- a/testsuites/psxtests/psxchroot01/Makefile.am +++ b/testsuites/psxtests/psxchroot01/Makefile.am @@ -29,6 +29,8 @@ include $(top_srcdir)/psxtests.am # (OPTIONAL) Add local stuff here using += # +AM_CPPFLAGS += -I$(top_srcdir)/include + ${PGM}: $(OBJS) $(LINK_FILES) $(make-exe) diff --git a/testsuites/psxtests/psxchroot01/main.c b/testsuites/psxtests/psxchroot01/main.c index c19138573a..4ce4bae422 100644 --- a/testsuites/psxtests/psxchroot01/main.c +++ b/testsuites/psxtests/psxchroot01/main.c @@ -5,6 +5,7 @@ #define TEST_INIT #include <bsp.h> +#include <pmacros.h> void test_main( void ); @@ -13,7 +14,7 @@ rtems_task Init( ) { test_main(); - exit( 0 ); + rtems_test_exit( 0 ); } /* configuration information */ diff --git a/testsuites/psxtests/psxchroot01/test.c b/testsuites/psxtests/psxchroot01/test.c index da93a96f05..6f7ebb8e89 100644 --- a/testsuites/psxtests/psxchroot01/test.c +++ b/testsuites/psxtests/psxchroot01/test.c @@ -28,6 +28,7 @@ #include <unistd.h> #include <errno.h> #include <rtems/libio.h> +#include <pmacros.h> void touch( char *file ) { @@ -117,6 +118,6 @@ int main( printf( "%s on /two/two.test\n", (!status) ? "SUCCESS" : "FAILURE" ); printf( "*** END OF CHROOT01 TEST ***\n" ); - exit(0); + rtems_test_exit(0); } |