summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testsuites/sptests/ChangeLog5
-rw-r--r--testsuites/sptests/sprbtree01/init.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/testsuites/sptests/ChangeLog b/testsuites/sptests/ChangeLog
index b55929e006..755476614e 100644
--- a/testsuites/sptests/ChangeLog
+++ b/testsuites/sptests/ChangeLog
@@ -1,3 +1,8 @@
+2011-08-02 Petr Benes <benesp16@fel.cvut.cz>
+
+ PR 1883/testing
+ * sprbtree01/init.c: Attempt provide coverage on last two ranges.
+
2011-08-02 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1877/cpukit
diff --git a/testsuites/sptests/sprbtree01/init.c b/testsuites/sptests/sprbtree01/init.c
index 8b0d075bb6..f1db5ee818 100644
--- a/testsuites/sptests/sprbtree01/init.c
+++ b/testsuites/sptests/sprbtree01/init.c
@@ -453,6 +453,8 @@ rtems_task Init(
puts ( "INIT - ERROR ON RBTREE NULL SIBLING MISMATCH" );
if ( _RBTree_Grandparent( NULL ) != NULL )
puts ( "INIT - ERROR ON RBTREE NULL GRANDPARENT MISMATCH" );
+ if ( _RBTree_Is_red( NULL ) != 0 )
+ puts ( "INIT - ERROR ON RBTREE NULL IS RED MISMATCH" );
puts( "INIT - Removing 100 nodes" );
@@ -477,7 +479,7 @@ rtems_task Init(
rtems_test_exit(0);
}
- if (rtems_rbtree_find_header(p) != NULL) {
+ if (rtems_rbtree_find_header(&node_array[0].Node) != NULL) {
puts ("INIT - ERROR ON RBTREE HEADER MISMATCH");
rtems_test_exit(0);
}