From ef362818dff3e7dc437d90133424e9c9f0608a02 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 5 Dec 2016 21:06:40 -0600 Subject: Add support for posix_devctl() --- testsuites/psxtests/psxdevctl01/main.c | 50 ++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 testsuites/psxtests/psxdevctl01/main.c (limited to 'testsuites/psxtests/psxdevctl01/main.c') 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 +#include + +/* 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 +/* end of file */ -- cgit v1.2.3