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/spatcb01/Makefile.am | 2 +- testsuites/ada/sptests/spatcb01/config.h | 18 ------------------ testsuites/ada/sptests/spatcb01/init.c | 18 ++++++++++++++++++ 3 files changed, 19 insertions(+), 19 deletions(-) delete mode 100644 testsuites/ada/sptests/spatcb01/config.h create mode 100644 testsuites/ada/sptests/spatcb01/init.c (limited to 'testsuites/ada/sptests/spatcb01') diff --git a/testsuites/ada/sptests/spatcb01/Makefile.am b/testsuites/ada/sptests/spatcb01/Makefile.am index b27c692cd8..1edd8989ce 100644 --- a/testsuites/ada/sptests/spatcb01/Makefile.am +++ b/testsuites/ada/sptests/spatcb01/Makefile.am @@ -5,7 +5,7 @@ include $(top_srcdir)/ada.am noinst_PROGRAMS = ada_spatcb01 ada_spatcb01_SOURCES = spatcb01.adb config.h -ada_spatcb01_SOURCES += ../../support/init.c +ada_spatcb01_SOURCES += init.c ada_spatcb01$(EXEEXT): spatcb01.adb init.$(OBJEXT) $(GNATCOMPILE) -margs -a $< -o $@ diff --git a/testsuites/ada/sptests/spatcb01/config.h b/testsuites/ada/sptests/spatcb01/config.h deleted file mode 100644 index dad989dbe4..0000000000 --- a/testsuites/ada/sptests/spatcb01/config.h +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright (c) 2017 embedded brains GmbH - * - * The license and distribution terms for this file may in - * the file LICENSE in this distribution or at - * http://www.rtems.org/license/LICENSE. - */ - -#define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER -#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER - -#define CONFIGURE_POSIX_INIT_THREAD_TABLE - -#define CONFIGURE_MAXIMUM_POSIX_THREADS 1 - -#define ADA_TEST_NAME "ADA SPATCB 1" - -#include diff --git a/testsuites/ada/sptests/spatcb01/init.c b/testsuites/ada/sptests/spatcb01/init.c new file mode 100644 index 0000000000..38c5fc519a --- /dev/null +++ b/testsuites/ada/sptests/spatcb01/init.c @@ -0,0 +1,18 @@ +/* + * Copyright (c) 2017 embedded brains GmbH + * + * The license and distribution terms for this file may in + * the file LICENSE in this distribution or at + * http://www.rtems.org/license/LICENSE. + */ + +#define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER +#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER + +#define CONFIGURE_POSIX_INIT_THREAD_TABLE + +#define CONFIGURE_MAXIMUM_POSIX_THREADS 1 + +#define ADA_TEST_NAME "ADA SPATCB 1" + +#include "../../support/initimpl.h" -- cgit v1.2.3