diff --git a/test/nil/configuration.xml b/test/nil/configuration.xml index 92334ab50..e937cf016 100644 --- a/test/nil/configuration.xml +++ b/test/nil/configuration.xml @@ -352,7 +352,7 @@ while (time == chVTGetSystemTimeX()) { - Checking case where start == end, it must always evaluate as in range. + Checking case where start == end, it must always evaluate as not in range. @@ -362,13 +362,13 @@ while (time == chVTGetSystemTimeX()) { bool b; b = chTimeIsInRangeX((systime_t)0, (systime_t)0, (systime_t)0); -test_assert(b == true, "not in range"); +test_assert(b == false, "in range"); b = chTimeIsInRangeX((systime_t)-1, (systime_t)0, (systime_t)0); -test_assert(b == true, "not in range"); +test_assert(b == false, "in range"); b = chTimeIsInRangeX((systime_t)0, (systime_t)-1, (systime_t)-1); -test_assert(b == true, "not in range"); +test_assert(b == false, "in range"); b = chTimeIsInRangeX((systime_t)-1, (systime_t)-1, (systime_t)-1); -test_assert(b == true, "not in range"); +test_assert(b == false, "in range"); ]]> diff --git a/test/nil/source/test/nil_test_sequence_002.c b/test/nil/source/test/nil_test_sequence_002.c index 0a8188d88..6844c0527 100644 --- a/test/nil/source/test/nil_test_sequence_002.c +++ b/test/nil/source/test/nil_test_sequence_002.c @@ -85,7 +85,7 @@ static const testcase_t nil_test_002_001 = { * *

Test Steps

* - [2.2.1] Checking case where start == end, it must always evaluate - * as in range. + * as not in range. * - [2.2.2] Checking boundaries for start < end. * - [2.2.3] Checking boundaries for start > end. * . @@ -94,19 +94,19 @@ static const testcase_t nil_test_002_001 = { static void nil_test_002_002_execute(void) { /* [2.2.1] Checking case where start == end, it must always evaluate - as in range.*/ + as not in range.*/ test_set_step(1); { bool b; b = chTimeIsInRangeX((systime_t)0, (systime_t)0, (systime_t)0); - test_assert(b == true, "not in range"); + test_assert(b == false, "in range"); b = chTimeIsInRangeX((systime_t)-1, (systime_t)0, (systime_t)0); - test_assert(b == true, "not in range"); + test_assert(b == false, "in range"); b = chTimeIsInRangeX((systime_t)0, (systime_t)-1, (systime_t)-1); - test_assert(b == true, "not in range"); + test_assert(b == false, "in range"); b = chTimeIsInRangeX((systime_t)-1, (systime_t)-1, (systime_t)-1); - test_assert(b == true, "not in range"); + test_assert(b == false, "in range"); } test_end_step(1); diff --git a/test/rt/configuration.xml b/test/rt/configuration.xml index a7051a75d..86d560223 100644 --- a/test/rt/configuration.xml +++ b/test/rt/configuration.xml @@ -717,7 +717,7 @@ while (time == chVTGetSystemTimeX()) { - Checking case where start == end, it must always evaluate as in range. + Checking case where start == end, it must always evaluate as not in range. @@ -727,13 +727,13 @@ while (time == chVTGetSystemTimeX()) { bool b; b = chTimeIsInRangeX((systime_t)0, (systime_t)0, (systime_t)0); -test_assert(b == true, "not in range"); +test_assert(b == false, "in range"); b = chTimeIsInRangeX((systime_t)-1, (systime_t)0, (systime_t)0); -test_assert(b == true, "not in range"); +test_assert(b == false, "in range"); b = chTimeIsInRangeX((systime_t)0, (systime_t)-1, (systime_t)-1); -test_assert(b == true, "not in range"); +test_assert(b == false, "in range"); b = chTimeIsInRangeX((systime_t)-1, (systime_t)-1, (systime_t)-1); -test_assert(b == true, "not in range"); +test_assert(b == false, "in range"); ]]> diff --git a/test/rt/source/test/rt_test_sequence_003.c b/test/rt/source/test/rt_test_sequence_003.c index 98404f55c..4f365c705 100644 --- a/test/rt/source/test/rt_test_sequence_003.c +++ b/test/rt/source/test/rt_test_sequence_003.c @@ -85,7 +85,7 @@ static const testcase_t rt_test_003_001 = { * *

Test Steps

* - [3.2.1] Checking case where start == end, it must always evaluate - * as in range. + * as not in range. * - [3.2.2] Checking boundaries for start < end. * - [3.2.3] Checking boundaries for start > end. * . @@ -94,19 +94,19 @@ static const testcase_t rt_test_003_001 = { static void rt_test_003_002_execute(void) { /* [3.2.1] Checking case where start == end, it must always evaluate - as in range.*/ + as not in range.*/ test_set_step(1); { bool b; b = chTimeIsInRangeX((systime_t)0, (systime_t)0, (systime_t)0); - test_assert(b == true, "not in range"); + test_assert(b == false, "in range"); b = chTimeIsInRangeX((systime_t)-1, (systime_t)0, (systime_t)0); - test_assert(b == true, "not in range"); + test_assert(b == false, "in range"); b = chTimeIsInRangeX((systime_t)0, (systime_t)-1, (systime_t)-1); - test_assert(b == true, "not in range"); + test_assert(b == false, "in range"); b = chTimeIsInRangeX((systime_t)-1, (systime_t)-1, (systime_t)-1); - test_assert(b == true, "not in range"); + test_assert(b == false, "in range"); } test_end_step(1);