summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxdevctl01/main.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2016-12-05 21:06:40 -0600
committerJoel Sherrill <joel@rtems.org>2017-01-11 09:45:32 -0600
commitef362818dff3e7dc437d90133424e9c9f0608a02 (patch)
treec6800ad8c9bcd8d9a894c48ea533c38d9eb3a962 /testsuites/psxtests/psxdevctl01/main.c
parentposix: Fix alarm() in SMP configurations (diff)
downloadrtems-ef362818dff3e7dc437d90133424e9c9f0608a02.tar.bz2
Add support for posix_devctl()
Diffstat (limited to 'testsuites/psxtests/psxdevctl01/main.c')
-rw-r--r--testsuites/psxtests/psxdevctl01/main.c50
1 files changed, 50 insertions, 0 deletions
diff --git a/testsuites/psxtests/psxdevctl01/main.c b/testsuites/psxtests/psxdevctl01/main.c
new file mode 100644
index 0000000000..2228551f1d
--- /dev/null
+++ b/testsuites/psxtests/psxdevctl01/main.c
@@ -0,0 +1,50 @@
+/**
+ * @file
+ *
+ * Test program wrapper for POSIX Devctl
+ */
+
+/*
+ * COPYRIGHT (c) 2016.
+ * 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.org/license/LICENSE.
+ */
+
+#define CONFIGURE_INIT
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <bsp.h>
+#include <pmacros.h>
+
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument ignored);
+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_DOES_NOT_NEED_CLOCK_DRIVER
+
+#define CONFIGURE_MAXIMUM_TASKS 1
+
+#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
+
+#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
+
+#define CONFIGURE_INIT
+
+#include <rtems/confdefs.h>
+/* end of file */