From 1fca16659754d1e7c0ac12a81bd24003dbc80c56 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 27 Nov 2019 11:41:06 +0100 Subject: testsuites/ada: Introduce init.c files Provide an init.c for each Ada test instead of the #include magic which works only due to hand crafted include paths. Update #3818. --- testsuites/ada/sptests/sp07/Makefile.am | 2 +- testsuites/ada/sptests/sp07/config.h | 33 --------------------------------- testsuites/ada/sptests/sp07/init.c | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 34 insertions(+), 34 deletions(-) delete mode 100644 testsuites/ada/sptests/sp07/config.h create mode 100644 testsuites/ada/sptests/sp07/init.c (limited to 'testsuites/ada/sptests/sp07') diff --git a/testsuites/ada/sptests/sp07/Makefile.am b/testsuites/ada/sptests/sp07/Makefile.am index 8ce5e22c1b..321017c942 100644 --- a/testsuites/ada/sptests/sp07/Makefile.am +++ b/testsuites/ada/sptests/sp07/Makefile.am @@ -6,7 +6,7 @@ include $(top_srcdir)/ada.am noinst_PROGRAMS = ada_sp07 ada_sp07_SOURCES = sp07.adb config.h sptest.adb sptest.ads -ada_sp07_SOURCES += ../../support/init.c +ada_sp07_SOURCES += init.c ada_sp07$(EXEEXT): sp07.adb init.$(OBJEXT) $(GNATCOMPILE) -margs -a $< -o $@ diff --git a/testsuites/ada/sptests/sp07/config.h b/testsuites/ada/sptests/sp07/config.h deleted file mode 100644 index ffdac2d224..0000000000 --- a/testsuites/ada/sptests/sp07/config.h +++ /dev/null @@ -1,33 +0,0 @@ -/* config.h - * - * This include file defines the Configuration Table for this test. - * - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may in - * the file LICENSE in this distribution or at - * http://www.rtems.org/license/LICENSE. - */ - - -/* configuration information */ - -#define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER -#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER - -#define CONFIGURE_MAXIMUM_USER_EXTENSIONS 1 -#define CONFIGURE_TICKS_PER_TIMESLICE 100 - -#define CONFIGURE_POSIX_INIT_THREAD_TABLE - -#define CONFIGURE_MAXIMUM_POSIX_THREADS 10 -#define CONFIGURE_MAXIMUM_POSIX_KEYS 10 - -#define CONFIGURE_MAXIMUM_TASKS 5 - -#define ADA_TEST_NAME "ADA SP 7" - -#include - -/* end of include file */ diff --git a/testsuites/ada/sptests/sp07/init.c b/testsuites/ada/sptests/sp07/init.c new file mode 100644 index 0000000000..c47213ef68 --- /dev/null +++ b/testsuites/ada/sptests/sp07/init.c @@ -0,0 +1,33 @@ +/* config.h + * + * This include file defines the Configuration Table for this test. + * + * COPYRIGHT (c) 1989-2007. + * On-Line Applications Research Corporation (OAR). + * + * The license and distribution terms for this file may in + * the file LICENSE in this distribution or at + * http://www.rtems.org/license/LICENSE. + */ + + +/* configuration information */ + +#define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER +#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER + +#define CONFIGURE_MAXIMUM_USER_EXTENSIONS 1 +#define CONFIGURE_TICKS_PER_TIMESLICE 100 + +#define CONFIGURE_POSIX_INIT_THREAD_TABLE + +#define CONFIGURE_MAXIMUM_POSIX_THREADS 10 +#define CONFIGURE_MAXIMUM_POSIX_KEYS 10 + +#define CONFIGURE_MAXIMUM_TASKS 5 + +#define ADA_TEST_NAME "ADA SP 7" + +#include "../../support/initimpl.h" + +/* end of include file */ -- cgit v1.2.3