Changeset 6cc1c29 in rtems for testsuites/support
- Timestamp:
- Dec 8, 2009, 9:39:21 PM (10 years ago)
- Branches:
- 4.10, 4.11, master
- Children:
- a7a9af76
- Parents:
- fe484280
- Location:
- testsuites/support
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
testsuites/support/include/test_support.h
rfe484280 r6cc1c29 1 1 /* 2 * Support routines for test code. 2 * COPYRIGHT (c) 1989-2009. 3 * On-Line Applications Research Corporation (OAR). 4 * 5 * The license and distribution terms for this file may be 6 * found in the file LICENSE in this distribution or at 7 * http://www.rtems.com/license/LICENSE. 3 8 * 4 9 * $Id$ … … 12 17 #endif 13 18 14 extern void Allocate_majority_of_workspace( int smallest ); 15 extern const char *Get_Too_Long_Name(void); 16 extern const char *Get_Longest_Name(void); 19 /* 20 * Allocate a number of small blocks from the heap 21 * until the largest free block of memory available is 22 * smaller than smallest. 23 * 24 * NOTE: The memory CANNOT be freed. 25 */ 26 void Allocate_majority_of_workspace( int smallest ); 27 28 /* 29 * Return a pointer to the POSIX name that is slightly 30 * beyond the legal limit. 31 */ 32 const char *Get_Too_Long_Name(void); 33 34 /* 35 * Return a pointer to the longest legal POSIX name. 36 */ 37 const char *Get_Longest_Name(void); 38 39 /* 40 * Spin for specified number of ticks. 41 */ 42 void rtems_test_spin_for_ticks(int ticks); 43 44 /* 45 * Spin until the next clock tick 46 */ 47 void rtems_test_spin_until_next_tick( void ); 17 48 18 49 #ifdef __cplusplus -
testsuites/support/include/tmacros.h
rfe484280 r6cc1c29 46 46 * mode/state of the test. Normally it should be 0 when in task space. 47 47 */ 48 49 48 #define check_dispatch_disable_level( _expect ) \ 50 49 do { \ 51 50 if ( (_expect) != -1 && _Thread_Dispatch_disable_level != (_expect) ) { \ 52 printf( "\n_Thread_Dispatch_disable_level is (%" PRId32 ") not %d\n", \ 53 _Thread_Dispatch_disable_level, (_expect) ); \ 51 printk( \ 52 "\n_Thread_Dispatch_disable_level is (%" PRId32 \ 53 ") not %d detected at %s:%d\n", \ 54 _Thread_Dispatch_disable_level, (_expect), __FILE__, __LINE__ ); \ 54 55 FLUSH_OUTPUT(); \ 55 56 rtems_test_exit( 1 ); \ … … 60 61 * These macros properly report errors within the Classic API 61 62 */ 62 63 63 #define directive_failed( _dirstat, _failmsg ) \ 64 64 fatal_directive_status( _dirstat, RTEMS_SUCCESSFUL, _failmsg ) -
testsuites/support/src/test_support.c
rfe484280 r6cc1c29 1 /* long_name 2 * 3 * This set of routines is create names that are the maximum length or one over 4 * the maximum length. 5 * 6 * Output parameters: constant character string of max length or max length + 1 7 * 8 * COPYRIGHT (c) 1989-2008. 1 /* 2 * COPYRIGHT (c) 1989-2009. 9 3 * On-Line Applications Research Corporation (OAR). 10 4 *
Note: See TracChangeset
for help on using the changeset viewer.