Changeset 73d892d8 in rtems


Ignore:
Timestamp:
Oct 26, 2017, 11:59:07 AM (19 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
46ddc3c5
Parents:
7bec7f27
git-author:
Sebastian Huber <sebastian.huber@…> (10/26/17 11:59:07)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/28/17 11:33:55)
Message:

tests: Use rtems_test_printer

Update #3170.
Update #3199.

Location:
testsuites
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • testsuites/libtests/block14/init.c

    r7bec7f27 r73d892d8  
    121121static void test_actions(rtems_disk_device *dd)
    122122{
    123   rtems_printer printer;
    124123  int i;
    125 
    126   rtems_print_printer_printf(&printer);
    127124
    128125  for (i = 0; i < ACTION_COUNT; ++i) {
     
    161158  }
    162159
    163   rtems_blkdev_print_stats(&dd->stats, 0, 1, 2, &printer);
     160  rtems_blkdev_print_stats(&dd->stats, 0, 1, 2, &rtems_test_printer);
    164161}
    165162
  • testsuites/libtests/debugger01/init.c

    r7bec7f27 r73d892d8  
    2626static void test(void)
    2727{
    28   rtems_printer printer;
    29 
    30   rtems_print_printer_fprintf(&printer, stdout);
    3128  rtems_test_assert(rtems_debugger_start("test", "something",
    32                                          3, 10, &printer) < 0);
     29                                         3, 10, &rtems_test_printer) < 0);
    3330  rtems_test_assert(rtems_debugger_register_test_remote() == 0);
    3431  rtems_test_assert(rtems_debugger_start("test", "something",
    35                                          3, 10, &printer) == 0);
     32                                         3, 10, &rtems_test_printer) == 0);
    3633  rtems_debugger_set_verbose(true);
    3734  rtems_test_assert(rtems_debugger_remote_debug(true) == 0);
  • testsuites/libtests/mouse01/init.c

    r7bec7f27 r73d892d8  
    9898)
    9999{
    100   rtems_printer printer;
    101   rtems_print_printer_printf( &printer );
    102100  uid_print_message_with_plugin(
    103     &printer,
     101    &rtems_test_printer,
    104102    uid
    105103  );
  • testsuites/libtests/tar01/init.c

    r7bec7f27 r73d892d8  
    7070{
    7171  rtems_status_code sc;
    72   rtems_printer     printer;
    73 
    74   rtems_print_printer_printf(&printer);
    7572
    7673  printf("Untaring from memory - ");
    77   sc = Untar_FromMemory_Print((void *)TARFILE_START, TARFILE_SIZE, &printer);
     74  sc = Untar_FromMemory_Print(
     75    (void *)TARFILE_START,
     76    TARFILE_SIZE,
     77    &rtems_test_printer
     78  );
    7879  if (sc != RTEMS_SUCCESSFUL) {
    7980    printf ("error: untar failed: %s\n", rtems_status_text (sc));
     
    147148{
    148149  rtems_status_code sc;
    149   rtems_printer     printer;
    150150  int rv;
    151151  Untar_ChunkContext ctx;
     
    156156  puts( "" );
    157157
    158   rtems_print_printer_printf(&printer);
    159 
    160158  /* make a directory to untar it into */
    161159  rv = mkdir( "/dest2", 0777 );
     
    168166  Untar_ChunkContext_Init(&ctx);
    169167  do {
    170     sc = Untar_FromChunk_Print(&ctx, &buffer[counter], (size_t)1 , &printer);
     168    sc = Untar_FromChunk_Print(
     169      &ctx,
     170      &buffer[counter],
     171      (size_t)1 ,
     172      &rtems_test_printer
     173    );
    171174    rtems_test_assert(sc == RTEMS_SUCCESSFUL);
    172175    counter ++;
     
    192195{
    193196  int status;
    194   rtems_printer     printer;
    195197  int rv;
    196198  Untar_GzChunkContext ctx;
     
    204206  rtems_test_assert( buflen != 0 );
    205207
    206   rtems_print_printer_printf(&printer);
    207 
    208208  /* make a directory to untar it into */
    209209  rv = mkdir( "/dest3", 0777 );
     
    218218  rtems_test_assert(status == UNTAR_SUCCESSFUL);
    219219  for(i = 0; i < buflen; i++) {
    220     status = Untar_FromGzChunk_Print(&ctx, &buffer[i], 1, &printer);
     220    status = Untar_FromGzChunk_Print(&ctx, &buffer[i], 1, &rtems_test_printer);
    221221    rtems_test_assert(status == UNTAR_SUCCESSFUL);
    222222  }
     
    241241#if HAVE_XZ
    242242  int status;
    243   rtems_printer     printer;
    244243  int rv;
    245244  Untar_XzChunkContext ctx;
     
    252251
    253252  rtems_test_assert( buflen != 0 );
    254 
    255   rtems_print_printer_printf(&printer);
    256253
    257254  /* make a directory to untar it into */
     
    271268  rtems_test_assert(status == UNTAR_SUCCESSFUL);
    272269  for(i = 0; i < buflen; i++) {
    273     status = Untar_FromXzChunk_Print(&ctx, &buffer[i], 1, &printer);
     270    status = Untar_FromXzChunk_Print(&ctx, &buffer[i], 1, &rtems_test_printer);
    274271    rtems_test_assert(status == UNTAR_SUCCESSFUL);
    275272  }
  • testsuites/libtests/uid01/init.c

    r7bec7f27 r73d892d8  
    7272)
    7373{
    74   rtems_printer printer;
    75   rtems_print_printer_printf( &printer );
    7674  uid_print_message_with_plugin(
    77     &printer,
     75    &rtems_test_printer,
    7876    uid
    7977  );
  • testsuites/smptests/smpschededf01/init.c

    r7bec7f27 r73d892d8  
    2121#include <rtems.h>
    2222#include <rtems/cpuuse.h>
    23 #include <rtems/printer.h>
    2423
    2524#include "tmacros.h"
     
    7473{
    7574  rtems_status_code sc;
    76   rtems_printer printer;
    7775
    7876  ctx->one_tick_busy = rtems_test_get_one_tick_busy_count();
     
    118116  rtems_test_assert(sc == RTEMS_SUCCESSFUL);
    119117
    120   rtems_print_printer_printf(&printer);
    121   rtems_cpu_usage_report_with_plugin(&printer);
    122   rtems_rate_monotonic_report_statistics_with_plugin(&printer);
     118  rtems_cpu_usage_report_with_plugin(&rtems_test_printer);
     119  rtems_rate_monotonic_report_statistics_with_plugin(&rtems_test_printer);
    123120}
    124121
  • testsuites/sptests/spprofiling01/init.c

    r7bec7f27 r73d892d8  
    118118static void test_report_xml(void)
    119119{
    120   rtems_printer printer;
    121120  rtems_status_code sc;
    122121  int rv;
     
    125124  rtems_test_assert(sc == RTEMS_SUCCESSFUL);
    126125
    127   rtems_print_printer_printf(&printer);
    128   rv = rtems_profiling_report_xml("X", &printer, 1, "  ");
     126  rv = rtems_profiling_report_xml("X", &rtems_test_printer, 1, "  ");
    129127  printf("characters produced by rtems_profiling_report_xml(): %i\n", rv);
    130128}
Note: See TracChangeset for help on using the changeset viewer.