summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxinttypes01/init.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-11-25 09:39:29 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-11-26 07:21:40 +0100
commite9fdcd79b73d3c4879ac64696d5de1fafb6cf8a2 (patch)
treedc5a5e41d391c59b62a3272e8e89057c518ca63d /testsuites/psxtests/psxinttypes01/init.c
parentlibtests: Use '-' for TAR file names (diff)
downloadrtems-e9fdcd79b73d3c4879ac64696d5de1fafb6cf8a2.tar.bz2
psxinttypes01: Remove invalid test cases
The functions expect a valid string as input according to POSIX. On systems with a NULL pointer protection the test cases ended up in exceptions.
Diffstat (limited to 'testsuites/psxtests/psxinttypes01/init.c')
-rw-r--r--testsuites/psxtests/psxinttypes01/init.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/testsuites/psxtests/psxinttypes01/init.c b/testsuites/psxtests/psxinttypes01/init.c
index bfb6d4b357..030aa2aa57 100644
--- a/testsuites/psxtests/psxinttypes01/init.c
+++ b/testsuites/psxtests/psxinttypes01/init.c
@@ -95,11 +95,6 @@ rtems_task Init(rtems_task_argument ignored)
rtems_test_assert( result_strtoimax == INTMAX_MIN );
rtems_test_assert( errno == ERANGE );
- puts( "Invalid Input - Send NULL Pointer" );
- result_strtoimax = strtoimax( NULL, &endptr1, base );
- rtems_test_assert( result_strtoimax == 0 );
- rtems_test_assert( errno == EINVAL );
-
puts( "Invalid Input - Invalid base - Use base = 40" );
result_strtoimax = strtoimax( nptr1_p, &endptr1, invalid_base );
rtems_test_assert( result_strtoimax == 0 );
@@ -131,11 +126,6 @@ rtems_task Init(rtems_task_argument ignored)
rtems_test_assert( result_strtoumax != 0 );
rtems_test_assert( errno == ERANGE );
- puts( "Invalid Input - Send NULL Pointer" );
- result_strtoumax = strtoumax( NULL, &endptr1, base );
- rtems_test_assert( result_strtoumax == 0 );
- rtems_test_assert( errno == EINVAL );
-
puts( "Invalid Input - Invalid base - Use base = 40" );
result_strtoumax = strtoumax( nptr1_p, &endptr1, invalid_base );
rtems_test_assert( result_strtoumax == 0 );
@@ -167,11 +157,6 @@ rtems_task Init(rtems_task_argument ignored)
rtems_test_assert( result_strtoimax == INTMAX_MIN );
rtems_test_assert( errno == ERANGE );
- puts( "Invalid Input - Send NULL Pointer" );
- result_strtoimax = wcstoimax( NULL, &endptr2, base );
- rtems_test_assert( result_strtoimax == 0 );
- rtems_test_assert( errno == EINVAL );
-
puts( "Invalid Input - Invalid base - Use base = 40" );
result_strtoimax = wcstoimax( nptr2_p, &endptr2, invalid_base );
rtems_test_assert( result_strtoimax == 0 );
@@ -203,11 +188,6 @@ rtems_task Init(rtems_task_argument ignored)
rtems_test_assert( result_strtoumax != 0 );
rtems_test_assert( errno == ERANGE );
- puts( "Invalid Input - Send NULL Pointer" );
- result_strtoumax = wcstoumax( NULL, &endptr2, base );
- rtems_test_assert( result_strtoumax == 0 );
- rtems_test_assert( errno == EINVAL );
-
puts( "Invalid Input - Invalid base - Use base = 40" );
result_strtoumax = wcstoumax( nptr2_p, &endptr2, invalid_base );
rtems_test_assert( result_strtoumax == 0 );