diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-07-26 07:22:23 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-07-26 07:22:23 -0500 |
commit | 7e7dac757b2b733584f573e5c5e2323d85e59379 (patch) | |
tree | cf5d290fcda0250e522158dd361f4c880ba511e2 /testsuite/init01/test_main.c | |
parent | link01 - Clean up and split so initialization can be reused in other tests (diff) | |
download | rtems-libbsd-7e7dac757b2b733584f573e5c5e2323d85e59379.tar.bz2 |
Rename link01 to init01
Diffstat (limited to 'testsuite/init01/test_main.c')
-rw-r--r-- | testsuite/init01/test_main.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/testsuite/init01/test_main.c b/testsuite/init01/test_main.c new file mode 100644 index 00000000..3e7c43e8 --- /dev/null +++ b/testsuite/init01/test_main.c @@ -0,0 +1,23 @@ +/* + * This is the body of the test. It does not do much except ensure + * that the target is alive after initializing the TCP/IP stack. + */ + +#include <bsp.h> +#include <stdlib.h> +#include <stdio.h> +#include <freebsd/bsd.h> + +void print_test_name(void) +{ + printf( "\n\n*** LIBFREEBSD INITIALIZATION TEST ***\n" ); +} + +void test_main(void) +{ + puts( "Sleeping to see what happens" ); + sleep( 5 ); + + printf( "*** END OF LIBFREEBSD INITIALIZATION TEST ***\n" ); + exit( 0 ); +} |