summaryrefslogtreecommitdiffstats
path: root/c/src/tests/psxtests/psxstat
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/tests/psxtests/psxstat')
-rw-r--r--c/src/tests/psxtests/psxstat/Makefile.am2
-rw-r--r--c/src/tests/psxtests/psxstat/main.c3
-rw-r--r--c/src/tests/psxtests/psxstat/test.c3
3 files changed, 6 insertions, 2 deletions
diff --git a/c/src/tests/psxtests/psxstat/Makefile.am b/c/src/tests/psxtests/psxstat/Makefile.am
index de4e33dfa0..a33da8cd08 100644
--- a/c/src/tests/psxtests/psxstat/Makefile.am
+++ b/c/src/tests/psxtests/psxstat/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/c/src/tests/psxtests/psxstat/main.c b/c/src/tests/psxtests/psxstat/main.c
index f358a6ddb6..4a67c31542 100644
--- a/c/src/tests/psxtests/psxstat/main.c
+++ b/c/src/tests/psxtests/psxstat/main.c
@@ -14,6 +14,7 @@
#define TEST_INIT
#include <bsp.h>
+#include <pmacros.h>
void test_main( void );
@@ -22,7 +23,7 @@ rtems_task Init(
)
{
test_main();
- exit( 0 );
+ rtems_test_exit( 0 );
}
/* configuration information */
diff --git a/c/src/tests/psxtests/psxstat/test.c b/c/src/tests/psxtests/psxstat/test.c
index 04517de986..8852674181 100644
--- a/c/src/tests/psxtests/psxstat/test.c
+++ b/c/src/tests/psxtests/psxstat/test.c
@@ -24,6 +24,7 @@
#include <rtems.h>
#include <rtems/libio.h>
#include <imfs.h>
+#include <pmacros.h>
#define MAXSYMLINK 5 /* There needs to be a better way of getting this. */
#define TIMEOUT_VALUE ( 5 * TICKS_PER_SECOND )
@@ -845,7 +846,7 @@ int main(
chown_multiple_files( Links_to_Dirs );
puts( "\n\n*** END OF STAT TEST 01 ***" );
- exit(0);
+ rtems_test_exit(0);
}