From 8c3c1763f081ce7a42b089f7372ae10e7d67bd69 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 26 Jul 2000 20:44:11 +0000 Subject: Added ifdef on C4x to avoid invalid address alignment checks since there is no such thing on the C4x. --- c/src/tests/sptests/sp09/screen09.c | 12 ++++++++++++ c/src/tests/sptests/sp09/screen11.c | 8 ++++++++ c/src/tests/sptests/sp09/screen12.c | 8 ++++++++ testsuites/sptests/sp09/screen09.c | 12 ++++++++++++ testsuites/sptests/sp09/screen11.c | 8 ++++++++ testsuites/sptests/sp09/screen12.c | 8 ++++++++ 6 files changed, 56 insertions(+) diff --git a/c/src/tests/sptests/sp09/screen09.c b/c/src/tests/sptests/sp09/screen09.c index 45c55dc520..0060b84caa 100644 --- a/c/src/tests/sptests/sp09/screen09.c +++ b/c/src/tests/sptests/sp09/screen09.c @@ -36,6 +36,9 @@ void Screen9() ); puts( "TA1 - rtems_interrupt_catch - RTEMS_INVALID_NUMBER" ); +#if defined(_C3x) || defined(_C4x) + puts( "TA1 - rtems_interrupt_catch - bad handler RTEMS_INVALID_ADDRESS -- SKIPPED" ); +#else status = rtems_interrupt_catch( NULL, 3, &old_service_routine ); fatal_directive_status( status, @@ -43,7 +46,11 @@ void Screen9() "rtems_interrupt_catch with invalid handler" ); puts( "TA1 - rtems_interrupt_catch - bad handler RTEMS_INVALID_ADDRESS" ); +#endif +#if defined(_C3x) || defined(_C4x) + puts( "TA1 - rtems_interrupt_catch - old isr RTEMS_INVALID_ADDRESS - SKIPPED" ); +#else status = rtems_interrupt_catch( Service_routine, 3, NULL ); fatal_directive_status( status, @@ -51,6 +58,7 @@ void Screen9() "rtems_interrupt_catch with invalid old isr pointer" ); puts( "TA1 - rtems_interrupt_catch - old isr RTEMS_INVALID_ADDRESS" ); +#endif status = rtems_signal_send( 100, RTEMS_SIGNAL_1 ); fatal_directive_status( @@ -82,6 +90,9 @@ void Screen9() ); puts( "TA1 - rtems_port_create - RTEMS_INVALID_NAME" ); +#if defined(_C3x) || defined(_C4x) + puts( "TA1 - rtems_port_create - RTEMS_INVALID_ADDRESS - SKIPPED" ); +#else status = rtems_port_create( Port_name[ 1 ], &((char *)Internal_port_area)[ 1 ], @@ -95,6 +106,7 @@ void Screen9() "rtems_port_create with illegal address" ); puts( "TA1 - rtems_port_create - RTEMS_INVALID_ADDRESS" ); +#endif status = rtems_port_create( Port_name[ 1 ], diff --git a/c/src/tests/sptests/sp09/screen11.c b/c/src/tests/sptests/sp09/screen11.c index c5666a039c..373ad560b9 100644 --- a/c/src/tests/sptests/sp09/screen11.c +++ b/c/src/tests/sptests/sp09/screen11.c @@ -109,6 +109,9 @@ void Screen11() #endif puts( "TA1 - rtems_partition_create - RTEMS_MP_NOT_CONFIGURED" ); +#if defined(_C3x) || defined(_C4x) + puts( "TA1 - rtems_partition_create - RTEMS_INVALID_ADDRESS - SKIPPED" ); +#else status = rtems_partition_create( Partition_name[ 1 ], Partition_bad_area, @@ -123,7 +126,11 @@ void Screen11() "rtems_partition_create with bad address" ); puts( "TA1 - rtems_partition_create - RTEMS_INVALID_ADDRESS" ); +#endif +#if defined(_C3x) || defined(_C4x) + puts( "TA1 - rtems_partition_create - RTEMS_INVALID_SIZE - SKIPPED" ); +#else status = rtems_partition_create( Partition_name[ 1 ], Partition_good_area, @@ -138,6 +145,7 @@ void Screen11() "rtems_partition_create with unaligned buffer_size" ); puts( "TA1 - rtems_partition_create - RTEMS_INVALID_SIZE" ); +#endif status = rtems_partition_delete( 100 ); fatal_directive_status( diff --git a/c/src/tests/sptests/sp09/screen12.c b/c/src/tests/sptests/sp09/screen12.c index 26ee620fb3..1c3a6790db 100644 --- a/c/src/tests/sptests/sp09/screen12.c +++ b/c/src/tests/sptests/sp09/screen12.c @@ -43,6 +43,9 @@ void Screen12() ); puts( "TA1 - rtems_region_create - RTEMS_INVALID_NAME" ); +#if defined(_C3x) || defined(_C4x) + puts( "TA1 - rtems_region_create - RTEMS_INVALID_ADDRESS - SKIPPED" ); +#else status = rtems_region_create( Region_name[ 1 ], Region_bad_area, @@ -57,7 +60,11 @@ void Screen12() "rtems_region_create with illegal address" ); puts( "TA1 - rtems_region_create - RTEMS_INVALID_ADDRESS" ); +#endif +#if defined(_C3x) || defined(_C4x) + puts( "TA1 - rtems_region_create - RTEMS_INVALID_SIZE - SKIPPED" ); +#else status = rtems_region_create( Region_name[ 1 ], Region_good_area, @@ -72,6 +79,7 @@ void Screen12() "rtems_region_create with illegal size" ); puts( "TA1 - rtems_region_create - RTEMS_INVALID_SIZE" ); +#endif status = rtems_region_create( Region_name[ 1 ], diff --git a/testsuites/sptests/sp09/screen09.c b/testsuites/sptests/sp09/screen09.c index 45c55dc520..0060b84caa 100644 --- a/testsuites/sptests/sp09/screen09.c +++ b/testsuites/sptests/sp09/screen09.c @@ -36,6 +36,9 @@ void Screen9() ); puts( "TA1 - rtems_interrupt_catch - RTEMS_INVALID_NUMBER" ); +#if defined(_C3x) || defined(_C4x) + puts( "TA1 - rtems_interrupt_catch - bad handler RTEMS_INVALID_ADDRESS -- SKIPPED" ); +#else status = rtems_interrupt_catch( NULL, 3, &old_service_routine ); fatal_directive_status( status, @@ -43,7 +46,11 @@ void Screen9() "rtems_interrupt_catch with invalid handler" ); puts( "TA1 - rtems_interrupt_catch - bad handler RTEMS_INVALID_ADDRESS" ); +#endif +#if defined(_C3x) || defined(_C4x) + puts( "TA1 - rtems_interrupt_catch - old isr RTEMS_INVALID_ADDRESS - SKIPPED" ); +#else status = rtems_interrupt_catch( Service_routine, 3, NULL ); fatal_directive_status( status, @@ -51,6 +58,7 @@ void Screen9() "rtems_interrupt_catch with invalid old isr pointer" ); puts( "TA1 - rtems_interrupt_catch - old isr RTEMS_INVALID_ADDRESS" ); +#endif status = rtems_signal_send( 100, RTEMS_SIGNAL_1 ); fatal_directive_status( @@ -82,6 +90,9 @@ void Screen9() ); puts( "TA1 - rtems_port_create - RTEMS_INVALID_NAME" ); +#if defined(_C3x) || defined(_C4x) + puts( "TA1 - rtems_port_create - RTEMS_INVALID_ADDRESS - SKIPPED" ); +#else status = rtems_port_create( Port_name[ 1 ], &((char *)Internal_port_area)[ 1 ], @@ -95,6 +106,7 @@ void Screen9() "rtems_port_create with illegal address" ); puts( "TA1 - rtems_port_create - RTEMS_INVALID_ADDRESS" ); +#endif status = rtems_port_create( Port_name[ 1 ], diff --git a/testsuites/sptests/sp09/screen11.c b/testsuites/sptests/sp09/screen11.c index c5666a039c..373ad560b9 100644 --- a/testsuites/sptests/sp09/screen11.c +++ b/testsuites/sptests/sp09/screen11.c @@ -109,6 +109,9 @@ void Screen11() #endif puts( "TA1 - rtems_partition_create - RTEMS_MP_NOT_CONFIGURED" ); +#if defined(_C3x) || defined(_C4x) + puts( "TA1 - rtems_partition_create - RTEMS_INVALID_ADDRESS - SKIPPED" ); +#else status = rtems_partition_create( Partition_name[ 1 ], Partition_bad_area, @@ -123,7 +126,11 @@ void Screen11() "rtems_partition_create with bad address" ); puts( "TA1 - rtems_partition_create - RTEMS_INVALID_ADDRESS" ); +#endif +#if defined(_C3x) || defined(_C4x) + puts( "TA1 - rtems_partition_create - RTEMS_INVALID_SIZE - SKIPPED" ); +#else status = rtems_partition_create( Partition_name[ 1 ], Partition_good_area, @@ -138,6 +145,7 @@ void Screen11() "rtems_partition_create with unaligned buffer_size" ); puts( "TA1 - rtems_partition_create - RTEMS_INVALID_SIZE" ); +#endif status = rtems_partition_delete( 100 ); fatal_directive_status( diff --git a/testsuites/sptests/sp09/screen12.c b/testsuites/sptests/sp09/screen12.c index 26ee620fb3..1c3a6790db 100644 --- a/testsuites/sptests/sp09/screen12.c +++ b/testsuites/sptests/sp09/screen12.c @@ -43,6 +43,9 @@ void Screen12() ); puts( "TA1 - rtems_region_create - RTEMS_INVALID_NAME" ); +#if defined(_C3x) || defined(_C4x) + puts( "TA1 - rtems_region_create - RTEMS_INVALID_ADDRESS - SKIPPED" ); +#else status = rtems_region_create( Region_name[ 1 ], Region_bad_area, @@ -57,7 +60,11 @@ void Screen12() "rtems_region_create with illegal address" ); puts( "TA1 - rtems_region_create - RTEMS_INVALID_ADDRESS" ); +#endif +#if defined(_C3x) || defined(_C4x) + puts( "TA1 - rtems_region_create - RTEMS_INVALID_SIZE - SKIPPED" ); +#else status = rtems_region_create( Region_name[ 1 ], Region_good_area, @@ -72,6 +79,7 @@ void Screen12() "rtems_region_create with illegal size" ); puts( "TA1 - rtems_region_create - RTEMS_INVALID_SIZE" ); +#endif status = rtems_region_create( Region_name[ 1 ], -- cgit v1.2.3