psxtests: Add psxinttypes01 for <inttypes.h> methods

This commit is contained in:
Vaibhav Gupta authored and Joel Sherrill committed 2019-06-19 11:03:35 -05:00
1 parent 373cd1c545
commit d9fcb22a61
5 files changed
+327

No files matched your search

+7
View File
@@ -523,6 +523,13 @@ psxintrcritical01_CPPFLAGS = $(AM_CPPFLAGS) \
endif
endif
if TEST_psxinttypes01
psx_tests += psxinttypes01
psxinttypes01_SOURCES = psxinttypes01/init.c
psxinttypes01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxinttypes01) \
$(support_includes)
endif
if HAS_POSIX
if TEST_psxitimer
psx_tests += psxitimer
+1
View File
@@ -91,6 +91,7 @@ RTEMS_TEST_CHECK([psxid01])
RTEMS_TEST_CHECK([psximfs01])
RTEMS_TEST_CHECK([psximfs02])
RTEMS_TEST_CHECK([psxintrcritical01])
RTEMS_TEST_CHECK([psxinttypes01])
RTEMS_TEST_CHECK([psxitimer])
RTEMS_TEST_CHECK([psxkey01])
RTEMS_TEST_CHECK([psxkey02])
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,43 @@
This File describes the concepts tested by this test suite.
inttypes.h - fixed size integer types
test suite name: PSXINTTYPE 01
- Checks for invalid base value
- Checks for Strtoimax Testcases
- checks for output for string having a positive number
- checks for output for string having a negative number
- checks for output for string having a positive number - Number Out of Range
- checks for output for string having a negative number - Number Out of Range
- checks for final string pointed by endptr
- checks for output for invalid argument - NULL Pointer
- checks for output for invalid argument - Invalid Base
- Checks for Strtoumax Test Cases
- checks for output for string having a positive number
- checks for output for string having a negative number
- checks for output for string having a positive number - Number Out of Range
- checks for output for string having a negative number - Number Out of Range
- checks for final string pointed by endptr
- checks for output for invalid argument - NULL Pointer
- checks for output for invalid argument - Invalid Base
- Checks for Wcstoimax Testcases
- checks for output for string having a positive number
- checks for output for string having a negative number
- checks for output for string having a positive number - Number Out of Range
- checks for output for string having a negative number - Number Out of Range
- checks for final string pointed by endptr
- checks for output for invalid argument - NULL Pointer
- checks for output for invalid argument - Invalid Base
- Checks for Wcstoumax Testcases
- checks for output for string having a positive number
- checks for output for string having a negative number
- checks for output for string having a positive number - Number Out of Range
- checks for output for string having a negative number - Number Out of Range
- checks for final string pointed by endptr
- checks for output for invalid argument - NULL Pointer
- checks for output for invalid argument - Invalid Base
@@ -0,0 +1,43 @@
*** PSXINTTYPE 01 TEST ***
strtoimax Testcases....
Valid Inputs - Positive Number
Final string pointed by endptr
Valid Inputs - Negative Number
Final string pointed by endptr
Valid Input - Positive Number - Number out of Range
Valid Input - Negative Number - Number out of Range
Invalid Input - Send NULL Pointer
Invalid Input - Invalid base - Use base = 40
strtoumax Testcases....
Valid Inputs - Positive Number
Final string pointed by endptr
Valid Inputs - Negative Number
Final string pointed by endptr
Valid Input - Positive Number - Number out of Range
Valid Input - Negative Number - Number out of Range
Invalid Input - Send NULL Pointer
Invalid Input - Invalid base - Use base = 40
wcstoimax Testcases....
Valid Inputs - Positive Number
Final string pointed by endptr
Valid Inputs - Negative Number
Final string pointed by endptr
Valid Input - Positive Number - Number out of Range
Valid Input - Negative Number - Number out of Range
Invalid Input - Send NULL Pointer
Invalid Input - Invalid base - Use base = 40
wcstoumax Testcases....
Valid Inputs - Positive Number
Final string pointed by endptr
Valid Inputs - Negative Number
Final string pointed by endptr
Valid Input - Positive Number - Number out of Range
Valid Input - Negative Number - Number out of Range
Invalid Input - Send NULL Pointer
Invalid Input - Invalid base - Use base = 40
*** END OF PSXINTTYPE 01 TEST ***