summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/sp09/screen10.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/sptests/sp09/screen10.c')
-rw-r--r--testsuites/sptests/sp09/screen10.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/testsuites/sptests/sp09/screen10.c b/testsuites/sptests/sp09/screen10.c
index 7a1136236f..0607e4e101 100644
--- a/testsuites/sptests/sp09/screen10.c
+++ b/testsuites/sptests/sp09/screen10.c
@@ -26,6 +26,15 @@ void Screen10()
/*
* Check create error cases.
*/
+ status = rtems_rate_monotonic_create( Period_name[ 1 ], NULL );
+ fatal_directive_status(
+ status,
+ RTEMS_INVALID_ADDRESS,
+ "rtems_rate_monotonic_create with NULL param"
+ );
+
+ puts( "TA1 - rtems_rate_monotonic_create - RTEMS_INVALID_ADDRESS" );
+
status = rtems_rate_monotonic_create( 0, &Junk_id );
fatal_directive_status(
status,
@@ -114,8 +123,27 @@ void Screen10()
);
/*
+ * Check get_statistics error cases.
+ */
+ status = rtems_rate_monotonic_get_statistics( Period_id[ 1 ], NULL );
+ fatal_directive_status(
+ status,
+ RTEMS_INVALID_ADDRESS,
+ "rtems_rate_monotonic_get_statistics with NULL param"
+ );
+ puts( "TA1 - rtems_rate_monotonic_get_statistics - RTEMS_INVALID_ADDRESS" );
+
+ /*
* Check get_status error cases.
*/
+ status = rtems_rate_monotonic_get_status( Period_id[ 1 ], NULL );
+ fatal_directive_status(
+ status,
+ RTEMS_INVALID_ADDRESS,
+ "rtems_rate_monotonic_get_status with NULL param"
+ );
+ puts( "TA1 - rtems_rate_monotonic_get_status - RTEMS_INVALID_ADDRESS" );
+
status = rtems_rate_monotonic_get_status( 100, &period_status );
fatal_directive_status(
status,