Changeset 840ae71 in rtems for testsuites/support


Ignore:
Timestamp:
Mar 10, 2014, 1:39:41 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
9391f6d
Parents:
2a37016
git-author:
Sebastian Huber <sebastian.huber@…> (03/10/14 13:39:41)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/17/14 08:17:36)
Message:

sapi: Add <rtems/test.h>

Provide support functions to print the begin/end of test message.
Provide a test fatal extension to print out profiling reports in the
future.

Location:
testsuites/support/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/support/include/buffer_test_io.h

    r2a37016 r840ae71  
    55#ifndef __BUFFER_TEST_IO_h
    66#define __BUFFER_TEST_IO_h
     7
     8#include <rtems/test.h>
    79
    810#ifdef __cplusplus
     
    5456    do { \
    5557    } while (0)
     58
     59  #define TEST_BEGIN() rtems_test_begink()
     60
     61  #define TEST_END() rtems_test_endk()
    5662
    5763/*
     
    153159    } while (0)
    154160
     161  #define TEST_BEGIN() rtems_test_begin()
     162
     163  #define TEST_END() rtems_test_end()
     164
    155165/*
    156166 *  USE IPRINT
     
    198208    } while (0)
    199209
     210  #define TEST_BEGIN() \
     211    rtems_test_begin_with_plugin((rtems_printk_plugin_t) fiprintf, stderr)
     212
     213  #define TEST_END() \
     214    rtems_test_end_with_plugin((rtems_printk_plugin_t) fiprintf, stderr)
     215
    200216#endif
    201217
  • testsuites/support/include/tmacros.h

    r2a37016 r840ae71  
    2323#include <string.h>
    2424#include <rtems/error.h>
     25#include <rtems/test.h>
    2526#include <rtems/score/threaddispatch.h>
    2627
Note: See TracChangeset for help on using the changeset viewer.