[PATCH] tests: Add header for RTEMS test printer

Heinz Junkes junkes at fhi-berlin.mpg.de
Wed Oct 4 14:29:14 UTC 2023


Leads to problems compiling legacy-stack:


Waf: Entering directory `/home/rtems/MVME6100_6_legacy_INST/rsb/rtems/build/rtems-net-legacy-3a83bcef4bd62fda5c0f9c94dd649fc32d962ab2-powerpc-rtems-1/rtems-net-legacy-3a83bcef4bd62fda5c0f9c94dd649fc32d962ab2/build/powerpc-rtems6-beatnik'
[1/1] Compiling include/machine/rtems-net-legacy.h.in
[  2/223] Compiling bsps/powerpc/beatnik/net/porting/if_xxx_rtems.c
[  3/223] Compiling bsps/powerpc/beatnik/net/if_em/if_em_rtems.c
[  4/223] Compiling bsps/powerpc/beatnik/net/if_em/if_em.c
[  5/223] Compiling bsps/powerpc/beatnik/net/if_mve/mv643xx_eth.c
[  6/223] Compiling bsps/powerpc/beatnik/net/if_gfe/if_gfe_rtems.c
[  7/223] Compiling bsps/powerpc/beatnik/net/if_em/if_em_hw.c
[  8/223] Compiling bsps/powerpc/beatnik/net/support/early_link_status.c
[  9/223] Compiling bsps/powerpc/beatnik/net/if_gfe/if_gfe.c
[ 10/223] Compiling bsps/powerpc/beatnik/net/support/bsp_attach.c
[ 11/223] Compiling librpc/src/xdr/xdr_reference.c
[ 12/223] Compiling netinet/if_ether.c
[ 13/223] Compiling rtems/rtems_syscall.c
[ 14/223] Compiling rtems/rtems_dhcp.c
[ 15/223] Compiling librpc/src/xdr/xdr_rec.c
[ 16/223] Compiling librpc/src/xdr/xdr_mem.c
[ 17/223] Compiling net/slcompress.c
[ 18/223] Compiling librpc/src/xdr/xdr_float.c
[ 19/223] Compiling net/rtsock.c
[ 20/223] Compiling net/route.c
[ 21/223] Compiling libtest/testrun.c
[ 22/223] Compiling libc/res_stubs.c
[ 23/223] Compiling bsps/shared/net/if_dc.c
[ 24/223] Compiling libc/res_mkquery.c
[ 25/223] Compiling librpc/src/rpc/bindresvport.c
[ 26/223] Compiling libc/gethostbyht.c
[ 27/223] Compiling net/if_ethersubr.c
[ 28/223] Compiling librpc/src/rpc/pmap_prot.c
[ 29/223] Compiling librpc/src/rpc/pmap_prot2.c
[ 30/223] Compiling net/if.c
[ 31/223] Compiling librpc/src/rpc/pmap_rmt.c
[ 32/223] Compiling librpc/src/rpc/rpc_callmsg.c
[ 33/223] Compiling rtems/rtems_showmbuf.c
[ 34/223] Compiling librpc/src/rpc/pmap_getport.c
[ 35/223] Compiling rtems/rtems_showroute.c
[ 36/223] Compiling bsps/shared/net/sonic.c
[ 37/223] Compiling librpc/src/rpc/pmap_clnt.c
[ 38/223] Compiling rtems/rtems-kernel-program.c
[ 39/223] Compiling rtems/rtems_showipstat.c
[ 40/223] Compiling libtest/testwrappers.c
[ 41/223] Compiling libtest/testbusy.c
[ 42/223] Compiling librpc/src/rpc/getrpcport.c
[ 43/223] Compiling libc/res_update.c
[ 44/223] Compiling libc/send.c
[ 45/223] Compiling librpc/src/rpc/clnt_tcp.c
[ 46/223] Compiling bsps/shared/net/i82586.c
[ 47/223] Compiling libc/res_mkupdate.c
../../libtest/testwrappers.c: In function '__wrap_printf':
../../libtest/testwrappers.c:24:3: error: unknown type name 'va_list'
   24 |   va_list ap;
      |   ^~~~~~~
../../libtest/testwrappers.c:14:1: note: 'va_list' is defined in header '<stdarg.h>'; did you forget to '#include <stdarg.h>'?
   13 | #include <rtems/test-info.h>
  +++ |+#include <stdarg.h>
   14 |
../../libtest/testwrappers.c:28:6: error: 'rtems_test_printer' undeclared (first use in this function); did you mean 'rtems_test_run'?
   28 |     &rtems_test_printer,
      |      ^~~~~~~~~~~~~~~~~~
      |      rtems_test_run
../../libtest/testwrappers.c:28:6: note: each undeclared identifier is reported only once for each function it appears in

Waf: Leaving directory `/home/rtems/MVME6100_6_legacy_INST/rsb/rtems/build/rtems-net-legacy-3a83bcef4bd62fda5c0f9c94dd649fc32d962ab2-powerpc-rtems-1/rtems-net-legacy-3a83bcef4bd62fda5c0f9c94dd649fc32d962ab2/build/powerpc-rtems6-beatnik'
Build failed
 -> task in 'netobjs' failed with exit status 1 (run with -v to display more information)
shell cmd failed: /bin/sh -ex  /home/rtems/MVME6100_6_legacy_INST/rsb/rtems/build/rtems-net-legacy-3a83bcef4bd62fda5c0f9c94dd649fc32d962ab2-powerpc-rtems-1/do-build
error: building rtems-net-legacy-3a83bcef4bd62fda5c0f9c94dd649fc32d962ab2-powerpc-rtems-1

> On 25. Sep 2023, at 08:40, Chris Johns <chrisj at rtems.org> wrote:
> 
> Looks good
> 
> Thanks
> Chris
> 
> On 22/9/2023 10:40 pm, Sebastian Huber wrote:
>> The <rtems/test-info.h> header file is required for every RTEMS test
>> program.  Move the RTEMS test printer support to a dedicated header file
>> <rtems/test-printer.h>.  This removes an unnecessary dependency to the
>> RTEMS printer support in <rtems/test-info.h>.
>> 
>> Tests using the RTEMS Testing Framework no longer depend on the
>> <rtems/printer.h>.
>> ---
>> cpukit/include/rtems/test-info.h              | 18 +----
>> cpukit/include/rtems/test-printer.h           | 69 +++++++++++++++++++
>> cpukit/libtest/testbeginend.c                 |  1 +
>> cpukit/libtest/testwrappers.c                 |  2 +-
>> spec/build/cpukit/librtemstest.yml            |  1 +
>> testsuites/benchmarks/linpack/linpack-pc.c    |  2 +-
>> testsuites/benchmarks/whetstone/whetstone.c   |  2 +-
>> testsuites/fstests/tftpfs/init.c              |  1 +
>> testsuites/libtests/dl01/dl01-o1.c            |  2 +-
>> testsuites/libtests/dl02/dl02-o1.c            |  2 +-
>> testsuites/libtests/dl02/dl02-o2.c            |  2 +-
>> testsuites/libtests/dl05/dl05-o5.cc           |  2 +-
>> testsuites/libtests/dl06/dl06-o1.c            |  2 +-
>> testsuites/libtests/dl06/dl06-o2.c            |  2 +-
>> testsuites/libtests/dl07/dl07-o1.c            |  2 +-
>> testsuites/libtests/dl07/dl07-o2.c            |  2 +-
>> testsuites/libtests/dl07/dl07-o3.c            |  2 +-
>> testsuites/libtests/dl07/dl07-o4.c            |  2 +-
>> testsuites/libtests/dl07/dl07-o5.c            |  2 +-
>> testsuites/libtests/dl08/dl08-o1.c            |  2 +-
>> testsuites/libtests/dl08/dl08-o2.c            |  2 +-
>> testsuites/libtests/dl08/dl08-o3.c            |  2 +-
>> testsuites/libtests/dl08/dl08-o4.c            |  2 +-
>> testsuites/libtests/dl08/dl08-o5.c            |  2 +-
>> .../dl08/dl08-o6-123456789-123456789.c        |  2 +-
>> testsuites/libtests/dl09/dl09-o1.c            |  2 +-
>> testsuites/libtests/dl09/dl09-o2.c            |  2 +-
>> testsuites/libtests/dl09/dl09-o3.c            |  2 +-
>> testsuites/libtests/dl09/dl09-o4.c            |  2 +-
>> testsuites/libtests/dl09/dl09-o5.c            |  2 +-
>> testsuites/libtests/dl10/dl10-o1.c            |  2 +-
>> testsuites/libtests/dl10/dl10-o2.c            |  2 +-
>> testsuites/libtests/dl10/dl10-o3.c            |  2 +-
>> testsuites/libtests/dl10/dl10-o4.c            |  2 +-
>> testsuites/libtests/dl10/dl10-o5.c            |  2 +-
>> testsuites/libtests/dl10/dl10-o6.c            |  1 -
>> testsuites/libtests/dl11/dl11-o1.c            |  1 -
>> testsuites/support/include/tmacros.h          |  1 +
>> 38 files changed, 105 insertions(+), 48 deletions(-)
>> create mode 100644 cpukit/include/rtems/test-printer.h
>> 
>> diff --git a/cpukit/include/rtems/test-info.h b/cpukit/include/rtems/test-info.h
>> index c1b41ccc6e..a5c00c423a 100644
>> --- a/cpukit/include/rtems/test-info.h
>> +++ b/cpukit/include/rtems/test-info.h
>> @@ -3,10 +3,9 @@
>> /**
>>  * @file
>>  *
>> - * @ingroup RTEMSTestFramework
>> + * @ingroup RTEMSTest
>>  *
>> - * @brief This header file provides interfaces of the
>> - *   RTEMS Test Framework.
>> + * @brief This header file provides interfaces of the RTEMS Test Support.
>>  */
>> 
>> /*
>> @@ -38,7 +37,6 @@
>> #define _RTEMS_TEST_H
>> 
>> #include <rtems.h>
>> -#include <rtems/printer.h>
>> #include <rtems/score/atomic.h>
>> #include <rtems/score/smpbarrier.h>
>> 
>> @@ -61,11 +59,6 @@ extern "C" {
>>  */
>> extern const char rtems_test_name[];
>> 
>> -/**
>> - * @brief Each test must define a printer.
>> - */
>> -extern rtems_printer rtems_test_printer;
>> -
>> /**
>>  * @brief Fatal extension for tests.
>>  */
>> @@ -134,13 +127,6 @@ int rtems_test_end(const char* name);
>>  */
>> RTEMS_NO_RETURN void rtems_test_exit(int status);
>> 
>> -/**
>> - * @brief Prints via the RTEMS printer.
>> - *
>> - * @return As specified by printf().
>> - */
>> -int rtems_test_printf(const char* format, ...) RTEMS_PRINTFLIKE(1, 2);
>> -
>> #define RTEMS_TEST_PARALLEL_PROCESSOR_MAX 32
>> 
>> typedef struct rtems_test_parallel_job rtems_test_parallel_job;
>> diff --git a/cpukit/include/rtems/test-printer.h b/cpukit/include/rtems/test-printer.h
>> new file mode 100644
>> index 0000000000..901c7c3654
>> --- /dev/null
>> +++ b/cpukit/include/rtems/test-printer.h
>> @@ -0,0 +1,69 @@
>> +/* SPDX-License-Identifier: BSD-2-Clause */
>> +
>> +/**
>> + * @file
>> + *
>> + * @ingroup RTEMSTest
>> + *
>> + * @brief This header file provides interfaces of the RTEMS Test Support.
>> + */
>> +
>> +/*
>> + * Copyright (C) 2014, 2023 embedded brains GmbH & Co. KG
>> + *
>> + * Redistribution and use in source and binary forms, with or without
>> + * modification, are permitted provided that the following conditions
>> + * are met:
>> + * 1. Redistributions of source code must retain the above copyright
>> + *    notice, this list of conditions and the following disclaimer.
>> + * 2. Redistributions in binary form must reproduce the above copyright
>> + *    notice, this list of conditions and the following disclaimer in the
>> + *    documentation and/or other materials provided with the distribution.
>> + *
>> + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
>> + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
>> + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
>> + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
>> + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
>> + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
>> + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
>> + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
>> + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
>> + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
>> + * POSSIBILITY OF SUCH DAMAGE.
>> + */
>> +
>> +#ifndef _RTEMS_TEST_PRINTER_H
>> +#define _RTEMS_TEST_PRINTER_H
>> +
>> +#include <rtems/printer.h>
>> +
>> +#ifdef __cplusplus
>> +extern "C" {
>> +#endif /* __cplusplus */
>> +
>> +/**
>> + * @addtogroup RTEMSTest
>> + *
>> + * @{
>> + */
>> +
>> +/**
>> + * @brief Provides an RTEMS printer for tests.
>> + */
>> +extern rtems_printer rtems_test_printer;
>> +
>> +/**
>> + * @brief Prints via the RTEMS test printer.
>> + *
>> + * @return Returns the count of output characters as specified by printf().
>> + */
>> +int rtems_test_printf(const char *format, ...) RTEMS_PRINTFLIKE(1, 2);
>> +
>> +/** @} */
>> +
>> +#ifdef __cplusplus
>> +}
>> +#endif /* __cplusplus */
>> +
>> +#endif /* _RTEMS_TEST_PRINTER_H */
>> diff --git a/cpukit/libtest/testbeginend.c b/cpukit/libtest/testbeginend.c
>> index 546fdf65ff..eca8712b35 100644
>> --- a/cpukit/libtest/testbeginend.c
>> +++ b/cpukit/libtest/testbeginend.c
>> @@ -41,6 +41,7 @@
>> #endif
>> 
>> #include <rtems/test-info.h>
>> +#include <rtems/test-printer.h>
>> #include <rtems/bspIo.h>
>> #include <rtems/version.h>
>> 
>> diff --git a/cpukit/libtest/testwrappers.c b/cpukit/libtest/testwrappers.c
>> index 3c6e8fccc3..2316208f7c 100644
>> --- a/cpukit/libtest/testwrappers.c
>> +++ b/cpukit/libtest/testwrappers.c
>> @@ -29,7 +29,7 @@
>> #include "config.h"
>> #endif
>> 
>> -#include <rtems/test-info.h>
>> +#include <rtems/test-printer.h>
>> 
>> int __wrap_printf(const char* format, ...);
>> int __wrap_puts(const char *str);
>> diff --git a/spec/build/cpukit/librtemstest.yml b/spec/build/cpukit/librtemstest.yml
>> index 19b1066b27..fc268f8971 100644
>> --- a/spec/build/cpukit/librtemstest.yml
>> +++ b/spec/build/cpukit/librtemstest.yml
>> @@ -13,6 +13,7 @@ install:
>>   - cpukit/include/rtems/test.h
>>   - cpukit/include/rtems/test-info.h
>>   - cpukit/include/rtems/test-gcov.h
>> +  - cpukit/include/rtems/test-printer.h
>>   - cpukit/include/rtems/test-scheduler.h
>> install-path: ${BSP_LIBDIR}
>> links: []
>> diff --git a/testsuites/benchmarks/linpack/linpack-pc.c b/testsuites/benchmarks/linpack/linpack-pc.c
>> index 1fef18eb96..5f00df1d7c 100644
>> --- a/testsuites/benchmarks/linpack/linpack-pc.c
>> +++ b/testsuites/benchmarks/linpack/linpack-pc.c
>> @@ -224,7 +224,7 @@
>> #include <math.h>
>> #include <stdlib.h>
>> #ifdef __rtems__
>> -#include <tmacros.h>
>> +#include <rtems/test-printer.h>
>> #undef print_time
>> #define fprintf(f, ...) rtems_printf(&rtems_test_printer, __VA_ARGS__)
>> #endif /* __rtems__ */
>> diff --git a/testsuites/benchmarks/whetstone/whetstone.c b/testsuites/benchmarks/whetstone/whetstone.c
>> index e0a93aa88c..aae68af6a6 100644
>> --- a/testsuites/benchmarks/whetstone/whetstone.c
>> +++ b/testsuites/benchmarks/whetstone/whetstone.c
>> @@ -57,7 +57,7 @@ C**********************************************************************
>> #include <string.h>
>> #include <math.h>
>> #ifdef __rtems__
>> -#include <tmacros.h>
>> +#include <rtems/test-printer.h>
>> #define fprintf(f, ...) rtems_printf(&rtems_test_printer, __VA_ARGS__)
>> #endif /* __rtems__ */
>> 
>> diff --git a/testsuites/fstests/tftpfs/init.c b/testsuites/fstests/tftpfs/init.c
>> index 4a8a4f3c35..74d1d5d311 100644
>> --- a/testsuites/fstests/tftpfs/init.c
>> +++ b/testsuites/fstests/tftpfs/init.c
>> @@ -42,6 +42,7 @@
>> #include "config.h"
>> #endif
>> 
>> +#include <stdio.h>
>> #include <stdlib.h> /* malloc(), free() */
>> #include <ctype.h> /* isprint() */
>> #include <errno.h>
>> diff --git a/testsuites/libtests/dl01/dl01-o1.c b/testsuites/libtests/dl01/dl01-o1.c
>> index ade4d5744d..9350235d85 100644
>> --- a/testsuites/libtests/dl01/dl01-o1.c
>> +++ b/testsuites/libtests/dl01/dl01-o1.c
>> @@ -29,7 +29,7 @@
>>  * Hello World as a loadable module.
>>  */
>> 
>> -#include <rtems/test-info.h>
>> +#include <rtems/test-printer.h>
>> 
>> #define printf(...) rtems_printf(&rtems_test_printer, __VA_ARGS__);
>> 
>> diff --git a/testsuites/libtests/dl02/dl02-o1.c b/testsuites/libtests/dl02/dl02-o1.c
>> index b442f82ae7..3b3e51825d 100644
>> --- a/testsuites/libtests/dl02/dl02-o1.c
>> +++ b/testsuites/libtests/dl02/dl02-o1.c
>> @@ -29,7 +29,7 @@
>> 
>> #include <dlfcn.h>
>> 
>> -#include <rtems/test-info.h>
>> +#include <rtems/test-printer.h>
>> 
>> #define printf(...) rtems_printf(&rtems_test_printer, __VA_ARGS__);
>> 
>> diff --git a/testsuites/libtests/dl02/dl02-o2.c b/testsuites/libtests/dl02/dl02-o2.c
>> index 02a537a84f..6694c5e985 100644
>> --- a/testsuites/libtests/dl02/dl02-o2.c
>> +++ b/testsuites/libtests/dl02/dl02-o2.c
>> @@ -27,7 +27,7 @@
>> 
>> #include "dl-o2.h"
>> 
>> -#include <rtems/test-info.h>
>> +#include <rtems/test-printer.h>
>> 
>> #define printf(...) rtems_printf(&rtems_test_printer, __VA_ARGS__)
>> 
>> diff --git a/testsuites/libtests/dl05/dl05-o5.cc b/testsuites/libtests/dl05/dl05-o5.cc
>> index c861916ff0..f928cf9004 100644
>> --- a/testsuites/libtests/dl05/dl05-o5.cc
>> +++ b/testsuites/libtests/dl05/dl05-o5.cc
>> @@ -2,7 +2,7 @@
>> 
>> #include <stdexcept>
>> 
>> -#include <rtems/test-info.h>
>> +#include <rtems/test-printer.h>
>> 
>> #define printf(...) rtems_printf(&rtems_test_printer, __VA_ARGS__);
>> 
>> diff --git a/testsuites/libtests/dl06/dl06-o1.c b/testsuites/libtests/dl06/dl06-o1.c
>> index 719d01e91f..1b8482bc3e 100644
>> --- a/testsuites/libtests/dl06/dl06-o1.c
>> +++ b/testsuites/libtests/dl06/dl06-o1.c
>> @@ -30,7 +30,7 @@
>> #include <dlfcn.h>
>> #include <math.h>
>> 
>> -#include <rtems/test-info.h>
>> +#include <rtems/test-printer.h>
>> 
>> #define printf(...) rtems_printf(&rtems_test_printer, __VA_ARGS__);
>> 
>> diff --git a/testsuites/libtests/dl06/dl06-o2.c b/testsuites/libtests/dl06/dl06-o2.c
>> index 837c2e8e4f..0a46c027a8 100644
>> --- a/testsuites/libtests/dl06/dl06-o2.c
>> +++ b/testsuites/libtests/dl06/dl06-o2.c
>> @@ -30,7 +30,7 @@
>> #include <stdlib.h>
>> #include <math.h>
>> 
>> -#include <rtems/test-info.h>
>> +#include <rtems/test-printer.h>
>> 
>> #define printf(...) rtems_printf(&rtems_test_printer, __VA_ARGS__);
>> 
>> diff --git a/testsuites/libtests/dl07/dl07-o1.c b/testsuites/libtests/dl07/dl07-o1.c
>> index 24a8086c49..0bca0ab838 100644
>> --- a/testsuites/libtests/dl07/dl07-o1.c
>> +++ b/testsuites/libtests/dl07/dl07-o1.c
>> @@ -28,7 +28,7 @@
>> 
>> #include "dl-o1.h"
>> 
>> -#include <rtems/test-info.h>
>> +#include <rtems/test-printer.h>
>> #include "dl-load.h"
>> 
>> #define printf(...) rtems_printf(&rtems_test_printer, __VA_ARGS__);
>> diff --git a/testsuites/libtests/dl07/dl07-o2.c b/testsuites/libtests/dl07/dl07-o2.c
>> index 12cc917ae0..46aef0d6fe 100644
>> --- a/testsuites/libtests/dl07/dl07-o2.c
>> +++ b/testsuites/libtests/dl07/dl07-o2.c
>> @@ -29,7 +29,7 @@
>> #include "dl-o1.h"
>> #include "dl-o2.h"
>> 
>> -#include <rtems/test-info.h>
>> +#include <rtems/test-printer.h>
>> 
>> #define printf(...) rtems_printf(&rtems_test_printer, __VA_ARGS__);
>> 
>> diff --git a/testsuites/libtests/dl07/dl07-o3.c b/testsuites/libtests/dl07/dl07-o3.c
>> index 12a5fe6829..ab60f50e97 100644
>> --- a/testsuites/libtests/dl07/dl07-o3.c
>> +++ b/testsuites/libtests/dl07/dl07-o3.c
>> @@ -32,7 +32,7 @@
>> #include "dl-o5.h"
>> 
>> #include <inttypes.h>
>> -#include <rtems/test-info.h>
>> +#include <rtems/test-printer.h>
>> 
>> #define printf(...) rtems_printf(&rtems_test_printer, __VA_ARGS__);
>> 
>> diff --git a/testsuites/libtests/dl07/dl07-o4.c b/testsuites/libtests/dl07/dl07-o4.c
>> index aeeb404561..e5f831ec24 100644
>> --- a/testsuites/libtests/dl07/dl07-o4.c
>> +++ b/testsuites/libtests/dl07/dl07-o4.c
>> @@ -29,7 +29,7 @@
>> #include "dl-o1.h"
>> #include "dl-o4.h"
>> 
>> -#include <rtems/test-info.h>
>> +#include <rtems/test-printer.h>
>> 
>> #define printf(...) rtems_printf(&rtems_test_printer, __VA_ARGS__);
>> 
>> diff --git a/testsuites/libtests/dl07/dl07-o5.c b/testsuites/libtests/dl07/dl07-o5.c
>> index e487d072ae..83e98f6d9d 100644
>> --- a/testsuites/libtests/dl07/dl07-o5.c
>> +++ b/testsuites/libtests/dl07/dl07-o5.c
>> @@ -30,7 +30,7 @@
>> #include "dl-o5.h"
>> 
>> #include <inttypes.h>
>> -#include <rtems/test-info.h>
>> +#include <rtems/test-printer.h>
>> 
>> #define printf(...) rtems_printf(&rtems_test_printer, __VA_ARGS__);
>> 
>> diff --git a/testsuites/libtests/dl08/dl08-o1.c b/testsuites/libtests/dl08/dl08-o1.c
>> index ccd8bc3587..015e847ea2 100644
>> --- a/testsuites/libtests/dl08/dl08-o1.c
>> +++ b/testsuites/libtests/dl08/dl08-o1.c
>> @@ -28,7 +28,7 @@
>> 
>> #include "dl-o1.h"
>> 
>> -#include <rtems/test-info.h>
>> +#include <rtems/test-printer.h>
>> #include "dl-load.h"
>> #include "dl-o1.h"
>> #include "dl-o2.h"
>> diff --git a/testsuites/libtests/dl08/dl08-o2.c b/testsuites/libtests/dl08/dl08-o2.c
>> index 8d72cb8703..3833cb5768 100644
>> --- a/testsuites/libtests/dl08/dl08-o2.c
>> +++ b/testsuites/libtests/dl08/dl08-o2.c
>> @@ -29,7 +29,7 @@
>> #include "dl-o2.h"
>> #include "dl-o3.h"
>> 
>> -#include <rtems/test-info.h>
>> +#include <rtems/test-printer.h>
>> 
>> #define printf(...) rtems_printf(&rtems_test_printer, __VA_ARGS__);
>> 
>> diff --git a/testsuites/libtests/dl08/dl08-o3.c b/testsuites/libtests/dl08/dl08-o3.c
>> index 267895476c..dc839bf270 100644
>> --- a/testsuites/libtests/dl08/dl08-o3.c
>> +++ b/testsuites/libtests/dl08/dl08-o3.c
>> @@ -31,7 +31,7 @@
>> #include "dl-o5.h"
>> 
>> #include <inttypes.h>
>> -#include <rtems/test-info.h>
>> +#include <rtems/test-printer.h>
>> 
>> #define printf(...) rtems_printf(&rtems_test_printer, __VA_ARGS__);
>> 
>> diff --git a/testsuites/libtests/dl08/dl08-o4.c b/testsuites/libtests/dl08/dl08-o4.c
>> index b77bf60465..d09fd2ec93 100644
>> --- a/testsuites/libtests/dl08/dl08-o4.c
>> +++ b/testsuites/libtests/dl08/dl08-o4.c
>> @@ -29,7 +29,7 @@
>> #include "dl-o4.h"
>> #include "dl-o5.h"
>> 
>> -#include <rtems/test-info.h>
>> +#include <rtems/test-printer.h>
>> 
>> #define printf(...) rtems_printf(&rtems_test_printer, __VA_ARGS__);
>> 
>> diff --git a/testsuites/libtests/dl08/dl08-o5.c b/testsuites/libtests/dl08/dl08-o5.c
>> index 614bff6a24..de86437757 100644
>> --- a/testsuites/libtests/dl08/dl08-o5.c
>> +++ b/testsuites/libtests/dl08/dl08-o5.c
>> @@ -30,7 +30,7 @@
>> #include "dl-o6.h"
>> 
>> #include <inttypes.h>
>> -#include <rtems/test-info.h>
>> +#include <rtems/test-printer.h>
>> 
>> #define printf(...) rtems_printf(&rtems_test_printer, __VA_ARGS__);
>> 
>> diff --git a/testsuites/libtests/dl08/dl08-o6-123456789-123456789.c b/testsuites/libtests/dl08/dl08-o6-123456789-123456789.c
>> index 3a03ec6e84..47d3f66f76 100644
>> --- a/testsuites/libtests/dl08/dl08-o6-123456789-123456789.c
>> +++ b/testsuites/libtests/dl08/dl08-o6-123456789-123456789.c
>> @@ -29,7 +29,7 @@
>> #include "dl-o6.h"
>> 
>> #include <inttypes.h>
>> -#include <rtems/test-info.h>
>> +#include <rtems/test-printer.h>
>> 
>> #define printf(...) rtems_printf(&rtems_test_printer, __VA_ARGS__);
>> 
>> diff --git a/testsuites/libtests/dl09/dl09-o1.c b/testsuites/libtests/dl09/dl09-o1.c
>> index 4659fda17c..291d33fcd0 100644
>> --- a/testsuites/libtests/dl09/dl09-o1.c
>> +++ b/testsuites/libtests/dl09/dl09-o1.c
>> @@ -28,7 +28,7 @@
>> 
>> #include "dl-o1.h"
>> 
>> -#include <rtems/test-info.h>
>> +#include <rtems/test-printer.h>
>> #include "dl-load.h"
>> #include "dl-o1.h"
>> #include "dl-o2.h"
>> diff --git a/testsuites/libtests/dl09/dl09-o2.c b/testsuites/libtests/dl09/dl09-o2.c
>> index a6906b4ad9..e8976f3b49 100644
>> --- a/testsuites/libtests/dl09/dl09-o2.c
>> +++ b/testsuites/libtests/dl09/dl09-o2.c
>> @@ -29,7 +29,7 @@
>> #include "dl-o2.h"
>> #include "dl-o3.h"
>> 
>> -#include <rtems/test-info.h>
>> +#include <rtems/test-printer.h>
>> 
>> #define printf(...) rtems_printf(&rtems_test_printer, __VA_ARGS__);
>> 
>> diff --git a/testsuites/libtests/dl09/dl09-o3.c b/testsuites/libtests/dl09/dl09-o3.c
>> index fab70c02c7..d9a056d45d 100644
>> --- a/testsuites/libtests/dl09/dl09-o3.c
>> +++ b/testsuites/libtests/dl09/dl09-o3.c
>> @@ -31,7 +31,7 @@
>> #include "dl-o5.h"
>> 
>> #include <inttypes.h>
>> -#include <rtems/test-info.h>
>> +#include <rtems/test-printer.h>
>> 
>> #define printf(...) rtems_printf(&rtems_test_printer, __VA_ARGS__);
>> 
>> diff --git a/testsuites/libtests/dl09/dl09-o4.c b/testsuites/libtests/dl09/dl09-o4.c
>> index 5cf4eb0f4b..8998059c93 100644
>> --- a/testsuites/libtests/dl09/dl09-o4.c
>> +++ b/testsuites/libtests/dl09/dl09-o4.c
>> @@ -29,7 +29,7 @@
>> #include "dl-o4.h"
>> #include "dl-o5.h"
>> 
>> -#include <rtems/test-info.h>
>> +#include <rtems/test-printer.h>
>> 
>> #define printf(...) rtems_printf(&rtems_test_printer, __VA_ARGS__);
>> 
>> diff --git a/testsuites/libtests/dl09/dl09-o5.c b/testsuites/libtests/dl09/dl09-o5.c
>> index 6b4aedbf68..e5374f3eb8 100644
>> --- a/testsuites/libtests/dl09/dl09-o5.c
>> +++ b/testsuites/libtests/dl09/dl09-o5.c
>> @@ -30,7 +30,7 @@
>> #include "dl-o5.h"
>> 
>> #include <inttypes.h>
>> -#include <rtems/test-info.h>
>> +#include <rtems/test-printer.h>
>> 
>> #define printf(...) rtems_printf(&rtems_test_printer, __VA_ARGS__);
>> 
>> diff --git a/testsuites/libtests/dl10/dl10-o1.c b/testsuites/libtests/dl10/dl10-o1.c
>> index ccd8bc3587..015e847ea2 100644
>> --- a/testsuites/libtests/dl10/dl10-o1.c
>> +++ b/testsuites/libtests/dl10/dl10-o1.c
>> @@ -28,7 +28,7 @@
>> 
>> #include "dl-o1.h"
>> 
>> -#include <rtems/test-info.h>
>> +#include <rtems/test-printer.h>
>> #include "dl-load.h"
>> #include "dl-o1.h"
>> #include "dl-o2.h"
>> diff --git a/testsuites/libtests/dl10/dl10-o2.c b/testsuites/libtests/dl10/dl10-o2.c
>> index 8d72cb8703..3833cb5768 100644
>> --- a/testsuites/libtests/dl10/dl10-o2.c
>> +++ b/testsuites/libtests/dl10/dl10-o2.c
>> @@ -29,7 +29,7 @@
>> #include "dl-o2.h"
>> #include "dl-o3.h"
>> 
>> -#include <rtems/test-info.h>
>> +#include <rtems/test-printer.h>
>> 
>> #define printf(...) rtems_printf(&rtems_test_printer, __VA_ARGS__);
>> 
>> diff --git a/testsuites/libtests/dl10/dl10-o3.c b/testsuites/libtests/dl10/dl10-o3.c
>> index 267895476c..dc839bf270 100644
>> --- a/testsuites/libtests/dl10/dl10-o3.c
>> +++ b/testsuites/libtests/dl10/dl10-o3.c
>> @@ -31,7 +31,7 @@
>> #include "dl-o5.h"
>> 
>> #include <inttypes.h>
>> -#include <rtems/test-info.h>
>> +#include <rtems/test-printer.h>
>> 
>> #define printf(...) rtems_printf(&rtems_test_printer, __VA_ARGS__);
>> 
>> diff --git a/testsuites/libtests/dl10/dl10-o4.c b/testsuites/libtests/dl10/dl10-o4.c
>> index b77bf60465..d09fd2ec93 100644
>> --- a/testsuites/libtests/dl10/dl10-o4.c
>> +++ b/testsuites/libtests/dl10/dl10-o4.c
>> @@ -29,7 +29,7 @@
>> #include "dl-o4.h"
>> #include "dl-o5.h"
>> 
>> -#include <rtems/test-info.h>
>> +#include <rtems/test-printer.h>
>> 
>> #define printf(...) rtems_printf(&rtems_test_printer, __VA_ARGS__);
>> 
>> diff --git a/testsuites/libtests/dl10/dl10-o5.c b/testsuites/libtests/dl10/dl10-o5.c
>> index 35cfbda2cd..185c259d8c 100644
>> --- a/testsuites/libtests/dl10/dl10-o5.c
>> +++ b/testsuites/libtests/dl10/dl10-o5.c
>> @@ -29,7 +29,7 @@
>> #include "dl-o5.h"
>> 
>> #include <inttypes.h>
>> -#include <rtems/test-info.h>
>> +#include <rtems/test-printer.h>
>> 
>> #define printf(...) rtems_printf(&rtems_test_printer, __VA_ARGS__);
>> 
>> diff --git a/testsuites/libtests/dl10/dl10-o6.c b/testsuites/libtests/dl10/dl10-o6.c
>> index fad9516f7b..2484ff6f2f 100644
>> --- a/testsuites/libtests/dl10/dl10-o6.c
>> +++ b/testsuites/libtests/dl10/dl10-o6.c
>> @@ -29,7 +29,6 @@
>> #include "dl-o5.h"
>> 
>> #include <inttypes.h>
>> -#include <rtems/test-info.h>
>> 
>> int rtems_main_o5 (void)
>> {
>> diff --git a/testsuites/libtests/dl11/dl11-o1.c b/testsuites/libtests/dl11/dl11-o1.c
>> index 21aa9bfc43..93ee2a60c7 100644
>> --- a/testsuites/libtests/dl11/dl11-o1.c
>> +++ b/testsuites/libtests/dl11/dl11-o1.c
>> @@ -25,7 +25,6 @@
>>  * POSSIBILITY OF SUCH DAMAGE.
>>  */
>> 
>> -#include <rtems/test-info.h>
>> #include <errno.h>
>> 
>> int get_errno_val (void);
>> diff --git a/testsuites/support/include/tmacros.h b/testsuites/support/include/tmacros.h
>> index 0dc35ea21d..aa20411623 100644
>> --- a/testsuites/support/include/tmacros.h
>> +++ b/testsuites/support/include/tmacros.h
>> @@ -46,6 +46,7 @@
>> #include <string.h>
>> #include <rtems/error.h>
>> #include <rtems/test-info.h>
>> +#include <rtems/test-printer.h>
>> #include <rtems/score/threaddispatch.h>
>> 
>> #include <buffer_test_io.h>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4712 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/devel/attachments/20231004/f288c450/attachment-0001.bin>


More information about the devel mailing list