<div dir="auto"><div><br>The scn file will be incorrect after this change. The doc file may be as well.</div><div dir="auto"><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Mon, Nov 25, 2019, 2:40 AM Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The functions expect a valid string as input according to POSIX. On<br>
systems with a NULL pointer protection the test cases ended up in<br>
exceptions.<br>
---<br>
testsuites/psxtests/psxinttypes01/init.c | 20 --------------------<br>
1 file changed, 20 deletions(-)<br>
<br>
diff --git a/testsuites/psxtests/psxinttypes01/init.c b/testsuites/psxtests/psxinttypes01/init.c<br>
index bfb6d4b357..030aa2aa57 100644<br>
--- a/testsuites/psxtests/psxinttypes01/init.c<br>
+++ b/testsuites/psxtests/psxinttypes01/init.c<br>
@@ -95,11 +95,6 @@ rtems_task Init(rtems_task_argument ignored)<br>
rtems_test_assert( result_strtoimax == INTMAX_MIN );<br>
rtems_test_assert( errno == ERANGE );<br>
<br>
- puts( "Invalid Input - Send NULL Pointer" );<br>
- result_strtoimax = strtoimax( NULL, &endptr1, base );<br>
- rtems_test_assert( result_strtoimax == 0 );<br>
- rtems_test_assert( errno == EINVAL );<br>
-<br>
puts( "Invalid Input - Invalid base - Use base = 40" );<br>
result_strtoimax = strtoimax( nptr1_p, &endptr1, invalid_base );<br>
rtems_test_assert( result_strtoimax == 0 );<br>
@@ -131,11 +126,6 @@ rtems_task Init(rtems_task_argument ignored)<br>
rtems_test_assert( result_strtoumax != 0 );<br>
rtems_test_assert( errno == ERANGE );<br>
<br>
- puts( "Invalid Input - Send NULL Pointer" );<br>
- result_strtoumax = strtoumax( NULL, &endptr1, base );<br>
- rtems_test_assert( result_strtoumax == 0 );<br>
- rtems_test_assert( errno == EINVAL );<br>
-<br>
puts( "Invalid Input - Invalid base - Use base = 40" );<br>
result_strtoumax = strtoumax( nptr1_p, &endptr1, invalid_base );<br>
rtems_test_assert( result_strtoumax == 0 );<br>
@@ -167,11 +157,6 @@ rtems_task Init(rtems_task_argument ignored)<br>
rtems_test_assert( result_strtoimax == INTMAX_MIN );<br>
rtems_test_assert( errno == ERANGE );<br>
<br>
- puts( "Invalid Input - Send NULL Pointer" );<br>
- result_strtoimax = wcstoimax( NULL, &endptr2, base );<br>
- rtems_test_assert( result_strtoimax == 0 );<br>
- rtems_test_assert( errno == EINVAL );<br>
-<br>
puts( "Invalid Input - Invalid base - Use base = 40" );<br>
result_strtoimax = wcstoimax( nptr2_p, &endptr2, invalid_base );<br>
rtems_test_assert( result_strtoimax == 0 );<br>
@@ -203,11 +188,6 @@ rtems_task Init(rtems_task_argument ignored)<br>
rtems_test_assert( result_strtoumax != 0 );<br>
rtems_test_assert( errno == ERANGE );<br>
<br>
- puts( "Invalid Input - Send NULL Pointer" );<br>
- result_strtoumax = wcstoumax( NULL, &endptr2, base );<br>
- rtems_test_assert( result_strtoumax == 0 );<br>
- rtems_test_assert( errno == EINVAL );<br>
-<br>
puts( "Invalid Input - Invalid base - Use base = 40" );<br>
result_strtoumax = wcstoumax( nptr2_p, &endptr2, invalid_base );<br>
rtems_test_assert( result_strtoumax == 0 );<br>
-- <br>
2.16.4<br>
<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank" rel="noreferrer">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</blockquote></div></div></div>