summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/sp09
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-07-20 01:02:17 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-07-20 01:02:17 +0000
commitf3ea48abbcf2be02e1830ef20e421544f211f369 (patch)
tree2f8d706eecfa41a3c85610859257c57ddfa685da /testsuites/sptests/sp09
parent2009-07-19 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-f3ea48abbcf2be02e1830ef20e421544f211f369.tar.bz2
*** empty log message ***
Diffstat (limited to 'testsuites/sptests/sp09')
-rw-r--r--testsuites/sptests/sp09/screen09.c16
-rw-r--r--testsuites/sptests/sp09/sp09.scn3
2 files changed, 17 insertions, 2 deletions
diff --git a/testsuites/sptests/sp09/screen09.c b/testsuites/sptests/sp09/screen09.c
index 8eba69a4b2..3be6a12f8a 100644
--- a/testsuites/sptests/sp09/screen09.c
+++ b/testsuites/sptests/sp09/screen09.c
@@ -108,7 +108,7 @@ void Screen9()
RTEMS_INVALID_ADDRESS,
"rtems_port_create with illegal address"
);
- puts( "TA1 - rtems_port_create - RTEMS_INVALID_ADDRESS" );
+ puts( "TA1 - rtems_port_create - bad range - RTEMS_INVALID_ADDRESS" );
#endif
status = rtems_port_create(
@@ -116,6 +116,20 @@ void Screen9()
Internal_port_area,
External_port_area,
sizeof( Internal_port_area ),
+ NULL
+ );
+ fatal_directive_status(
+ status,
+ RTEMS_INVALID_ADDRESS,
+ "rtems_port_create null Id"
+ );
+ puts( "TA1 - rtems_port_create - null id - RTEMS_INVALID_ADDRESS" );
+
+ status = rtems_port_create(
+ Port_name[ 1 ],
+ Internal_port_area,
+ External_port_area,
+ sizeof( Internal_port_area ),
&Junk_id
);
fatal_directive_status(
diff --git a/testsuites/sptests/sp09/sp09.scn b/testsuites/sptests/sp09/sp09.scn
index 44afce8015..47cace0453 100644
--- a/testsuites/sptests/sp09/sp09.scn
+++ b/testsuites/sptests/sp09/sp09.scn
@@ -156,7 +156,8 @@ TA1 - rtems_interrupt_catch - old isr RTEMS_INVALID_ADDRESS
TA1 - rtems_signal_send - RTEMS_INVALID_ID
TA1 - rtems_signal_send - RTEMS_NOT_DEFINED
TA1 - rtems_port_create - RTEMS_INVALID_NAME
-TA1 - rtems_port_create - RTEMS_INVALID_ADDRESS
+TA1 - rtems_port_create - bad range - RTEMS_INVALID_ADDRESS
+TA1 - rtems_port_create - null id - RTEMS_INVALID_ADDRESS
TA1 - rtems_port_create - RTEMS_TOO_MANY
TA1 - rtems_port_delete - RTEMS_INVALID_ID
TA1 - rtems_port_ident - RTEMS_INVALID_NAME