summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxrwlock01/main.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2006-11-15 14:10:06 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2006-11-15 14:10:06 +0000
commit7c6dac1e24be1cd6d9b137f2055ac3fbc1cccff8 (patch)
tree31cfb7809c569fb01a36a9dc6b6e2daa2d3d7fb3 /testsuites/psxtests/psxrwlock01/main.c
parent2006-11-15 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-7c6dac1e24be1cd6d9b137f2055ac3fbc1cccff8.tar.bz2
2006-11-15 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxrwlock01/.cvsignore, psxrwlock01/Makefile.am, psxrwlock01/main.c, psxrwlock01/psxrwlock01.scn, psxrwlock01/test.c, psxspin01/.cvsignore, psxspin01/Makefile.am, psxspin01/main.c, psxspin01/psxspin01.scn, psxspin01/test.c: New files.
Diffstat (limited to 'testsuites/psxtests/psxrwlock01/main.c')
-rw-r--r--testsuites/psxtests/psxrwlock01/main.c47
1 files changed, 47 insertions, 0 deletions
diff --git a/testsuites/psxtests/psxrwlock01/main.c b/testsuites/psxtests/psxrwlock01/main.c
new file mode 100644
index 0000000000..adf3e32ec3
--- /dev/null
+++ b/testsuites/psxtests/psxrwlock01/main.c
@@ -0,0 +1,47 @@
+/*
+ * Simple test program -- simplified version of sample test hello.
+ *
+ * COPYRIGHT (c) 1989-1999.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ *
+ * $Id$
+ */
+
+#define TEST_INIT
+
+#include <bsp.h>
+#include <pmacros.h>
+
+void test_main( void );
+
+rtems_task Init(
+ rtems_task_argument ignored
+)
+{
+ test_main();
+ rtems_test_exit( 0 );
+}
+
+/* configuration information */
+
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
+
+#define CONFIGURE_MAXIMUM_TASKS 2
+
+#define CONFIGURE_MAXIMUM_POSIX_RWLOCKS 1
+
+#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
+#define CONFIGURE_INIT_TASK_STACK_SIZE (RTEMS_MINIMUM_STACK_SIZE * 2)
+#define CONFIGURE_INIT_TASK_PRIORITY 2
+#define CONFIGURE_INIT_TASK_INITIAL_MODES RTEMS_PREEMPT
+
+#define CONFIGURE_INIT
+
+#include <rtems/confdefs.h>
+
+/* end of file */