[PATCH] samples/iostream: Produce proper begin/end message
Joel Sherrill
joel at rtems.org
Wed Aug 9 14:17:19 UTC 2023
Looks ok to push.
On Wed, Aug 9, 2023 at 3:37 AM Sebastian Huber <
sebastian.huber at embedded-brains.de> wrote:
> Print the full test information.
> ---
> testsuites/samples/iostream/init.cc | 9 +++++----
> 1 file changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/testsuites/samples/iostream/init.cc
> b/testsuites/samples/iostream/init.cc
> index 22d973019b..ddd38a9d15 100644
> --- a/testsuites/samples/iostream/init.cc
> +++ b/testsuites/samples/iostream/init.cc
> @@ -44,16 +44,17 @@
>
> #include <stdlib.h>
>
> +#include <tmacros.h>
> +
> const char rtems_test_name[] = "IOSTREAM";
>
> rtems_task Init(
> rtems_task_argument ignored
> )
> {
> - std::cout << std::endl << std::endl
> - << "*** BEGIN OF TEST " << rtems_test_name << " ***" << std::endl;
> + TEST_BEGIN();
> std::cout << "Hello World" << std::endl;
> - std::cout << "*** END OF TEST " << rtems_test_name << " ***" <<
> std::endl;
> - exit( 0 );
> + TEST_END();
> + rtems_test_exit( 0 );
> }
>
> --
> 2.35.3
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20230809/9670abf3/attachment.htm>
More information about the devel
mailing list