diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-07-26 07:18:19 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-07-26 07:18:19 -0500 |
commit | e717e817932a74bd7cf3bb92fc90d386f5bd1801 (patch) | |
tree | ff79cf8b8e6e45ea9cd75ce1c71eb4dca652ab1f /testsuite/link01/test_main.c | |
parent | Added rtems specific page tracking methods for uma page allocation. (diff) | |
download | rtems-libbsd-e717e817932a74bd7cf3bb92fc90d386f5bd1801.tar.bz2 |
link01 - Clean up and split so initialization can be reused in other tests
Removed building link_r since we appear to have managed to resolve
not pulling in enough of the FreeBSD source or having adequate
adapter routines.
Diffstat (limited to 'testsuite/link01/test_main.c')
-rw-r--r-- | testsuite/link01/test_main.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/testsuite/link01/test_main.c b/testsuite/link01/test_main.c new file mode 100644 index 00000000..3e7c43e8 --- /dev/null +++ b/testsuite/link01/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 ); +} |