summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/testsupport/testbeginend.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libmisc/testsupport/testbeginend.c')
-rw-r--r--cpukit/libmisc/testsupport/testbeginend.c39
1 files changed, 24 insertions, 15 deletions
diff --git a/cpukit/libmisc/testsupport/testbeginend.c b/cpukit/libmisc/testsupport/testbeginend.c
index 6383b33a78..6bfc400e1e 100644
--- a/cpukit/libmisc/testsupport/testbeginend.c
+++ b/cpukit/libmisc/testsupport/testbeginend.c
@@ -18,26 +18,35 @@
#include <rtems/test.h>
-int rtems_test_begin_with_plugin(
- rtems_printk_plugin_t printf_func,
- void *printf_arg
-)
+int rtems_test_begin(void)
+{
+ return rtems_printf(
+ &rtems_test_printer,
+ TEST_BEGIN_STRING
+ );
+}
+
+int rtems_test_end(void)
{
- return (*printf_func)(
- printf_arg,
- "\n\n*** BEGIN OF TEST %s ***\n",
- rtems_test_name
+ return rtems_printf(
+ &rtems_test_printer,
+ TEST_END_STRING
);
}
-int rtems_test_end_with_plugin(
- rtems_printk_plugin_t printf_func,
- void *printf_arg
+int rtems_test_print(
+ const char* format,
+ ...
)
{
- return (*printf_func)(
- printf_arg,
- "*** END OF TEST %s ***\n",
- rtems_test_name
+ va_list ap;
+ int len;
+ va_start(ap, format);
+ len = rtems_vprintf(
+ &rtems_test_printer,
+ format,
+ ap
);
+ va_end(ap);
+ return len;
}