[rtems-libbsd commit] init01: Add init.c
Joel Sherrill
joel at rtems.org
Fri Aug 3 13:36:46 UTC 2012
Module: rtems-libbsd
Branch: master
Commit: 71703fec74c0353b6a2a8699a70a22195b06343d
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=71703fec74c0353b6a2a8699a70a22195b06343d
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Fri Jul 27 07:48:22 2012 -0500
init01: Add init.c
---
testsuite/init01/init.c | 16 +++++++++++-----
1 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/testsuite/init01/init.c b/testsuite/init01/init.c
index 422e7f5..879a222 100644
--- a/testsuite/init01/init.c
+++ b/testsuite/init01/init.c
@@ -9,6 +9,10 @@
#include <stdio.h>
#include <freebsd/bsd.h>
+/* XXX should these be in a header? */
+void print_test_name(void);
+void test_main(void);
+
/* XXX temporary until in .h file */
void rtems_initialize_interfaces(void);
@@ -16,7 +20,8 @@ rtems_task Init(
rtems_task_argument ignored
)
{
- printf( "\n\n*** LIBFREEBSD INITIALIZATION TEST ***\n" );
+ print_test_name();
+
/*
* BSD must support the new "shared IRQ PIC implementation" at this point.
* BSPs must also provide rtems_interrupt_server_initialize() which
@@ -28,11 +33,12 @@ rtems_task Init(
puts( "Initializing interfaces" );
rtems_initialize_interfaces();
- puts( "Sleeping to see what happens" );
- sleep( 5 );
+ test_main();
+ /* should not return */
+
+ printf( "*** Test main returned and should not have ***\n" );
- printf( "*** END OF LIBFREEBSD INITIALIZATION TEST ***\n" );
- exit( 0 );
+ exit( 5 );
}
/* configuration information */
More information about the vc
mailing list