From e9fdcd79b73d3c4879ac64696d5de1fafb6cf8a2 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 25 Nov 2019 09:39:29 +0100 Subject: 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. --- testsuites/psxtests/psxinttypes01/init.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'testsuites/psxtests/psxinttypes01/init.c') 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 ); -- cgit v1.2.3