summaryrefslogtreecommitdiffstats
path: root/testsuite/link01/test.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2012-03-07 12:09:14 -0600
committerJoel Sherrill <joel.sherrill@oarcorp.com>2012-03-07 12:09:14 -0600
commit2e2d4416e2d93e1349d467b347437539c4aaedab (patch)
treea3649770c944981386006b8913e979f37c760e76 /testsuite/link01/test.c
parentrtems_filesystem_default_fpathconf is obsolete in 4.11 (diff)
downloadrtems-libbsd-2e2d4416e2d93e1349d467b347437539c4aaedab.tar.bz2
Add testsuite with single linking tests (link01)
Diffstat (limited to 'testsuite/link01/test.c')
-rw-r--r--testsuite/link01/test.c41
1 files changed, 41 insertions, 0 deletions
diff --git a/testsuite/link01/test.c b/testsuite/link01/test.c
new file mode 100644
index 00000000..69293605
--- /dev/null
+++ b/testsuite/link01/test.c
@@ -0,0 +1,41 @@
+/*
+ * Simple test program -- simplified version of sample test hello.
+ *
+ * $Id$
+ */
+
+#include <bsp.h>
+#include <stdlib.h>
+#include <stdio.h>
+#include <rtems/freebsd/bsd.h>
+
+int maxproc;
+int ngroups_max;
+
+void prison_hold() {}
+void prison_free() {}
+
+void rtems_interrupt_server_initialize(void) { }
+
+rtems_task Init(
+ rtems_task_argument ignored
+)
+{
+ printf( "\n\n*** LIBFREEBSD INITIALIZATION TEST ***\n" );
+ rtems_bsd_initialize_with_interrupt_server();
+ printf( "*** END OF LIBFREEBSD INITIALIZATION TEST ***\n" );
+ exit( 0 );
+}
+
+/* configuration information */
+
+/* NOTICE: the clock driver is explicitly disabled */
+#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+
+#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
+#define CONFIGURE_MAXIMUM_TASKS 1
+
+#define CONFIGURE_INIT
+#include <rtems/confdefs.h>
+/* end of file */