summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* sysconf: Remove sysconf(515)Ryan Long2021-06-091-8/+0
| | | | | | | GCC originally needed this 20 years ago. No longer needed, so it is being removed. Closes #4391
* psx13: Added tests for utimensat() and futimens()Ryan Long2021-05-282-22/+482
| | | | | | Improved tests for utime() and utimes() and update license. Close #4399
* posix: Allow pthread_cancel() from within ISRsSebastian Huber2021-05-261-31/+45
| | | | Close #4413.
* psxtests: Fix math function build warningsStephen Clark2021-05-0560-0/+231
| | | | | Added conditionals to ensure that long double function tests were only built when newlib has long double math functions.
* psx13: Reworked and relicensedRyan Long2021-04-283-582/+324
| | | | | | | Changed the way the tests were structured, added rtems_test_assert()'s, updated psx13.scn and the license. Update #3899
* score: Fix task stack initializationSebastian Huber2021-03-272-2/+10
| | | | | | | | | Do not adjust the stack area begin address since this may confuse the stack allocator and result in failed stack frees. Account for the alignment overhead in the stack space size estimate. Check that the stack size is in the expected interval.
* Test suite for FTW.H methodsEshan dhawan2021-03-116-0/+255
| | | | Signed-off-by: Eshan Dhawan <eshandhawan51@gmail.com>
* score: Return a status in _Objects_Set_name()Sebastian Huber2020-12-031-3/+3
|
* psxndbm01 - Fixing string truncation warningFrank Kühndel2020-10-121-8/+3
| | | | | | | | | | | | | | | | | | | This fixes the following compiler warning: testsuites/psxtests/psxndbm01/init.c:221:3: warning: 'strncpy' output truncated before terminating nul copying 5 bytes from a string of the same length 221 | strncpy( test_strings, "Hello", 5 ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In addition, the comments from Sebastian Huber on an old version of such a patch have been taken into account: 1) The use of `sizeof()` in `key.dsize = sizeof( test_strings );` is wrong. 2) There is no need to allocate the string. One can simply use a string constant. (See https://lists.rtems.org/pipermail/devel/2020-August/061418.html)
* rtems: Add RTEMS_PARTITION_ALIGNMENTSebastian Huber2020-10-071-1/+1
| | | | Update #4105.
* psxkey01: Fix configurationAschref Ben Thabet2020-08-201-1/+1
| | | | | | | Key_ID array must have the right size, it shall have a value greater than zero. Note: In Standard C and C++, zero-size array is not allowed..
* psxhdrs/strncpy/stpncpy: Fix string turncation warningAschref Ben Thabet2020-08-052-8/+6
| | | | | | Since we need to test the strncpy function, using a character array with a fixed array size in this case in place of character pointer can avoid the string turncation warning.
* psxhdrs/strncat: Fix string truncation warningAschref Ben Thabet2020-07-301-1/+1
|
* spintrcritical01/2/3/4/5: Use T_interrupt_test()Sebastian Huber2020-07-231-8/+3
|
* psxintrcritical01: Use T_interrupt_test()Sebastian Huber2020-07-233-50/+121
|
* libtest: <rtems/test.h> to <rtems/test-info.h>Sebastian Huber2020-07-236-6/+6
| | | | | | | | Rename this header file to later move <t.h> to <rtems/test.h>. The main feature provided by <rtems/test-info.h> is the output of standard test information which is consumed by the RTEMS Tester. Update #3199.
* tests for fenv.h functionsEshan dhawan2020-06-063-26/+77
| | | | | | | | | | | | | | | | | | | | | added tests for fesetexeptflag(), fegetexeptflag(), fegetround(), fesetround(). In the test fegetround() does not return any flag other then FE_TONEAREST in tests. This is probably due to soft float. The test complies successfully and returns assert at fegetround() Other tests run without any errors tested on RISCV/rv32imac The test prints nothing if runs successfully. updates #2971 Signed-off-by: Eshan dhawan <eshandhawan51@gmail.com>
* Canonicalize config.h includeSebastian Huber2020-04-1665-65/+65
| | | | | | | | Use the following variant which was already used by most source files: #ifdef HAVE_CONFIG_H #include "config.h" #endif
* score: Check time of day in _TOD_Set()Sebastian Huber2020-04-141-0/+25
| | | | Close #3949.
* Tests for inttype.h methodsEshan dhawan2020-04-072-2/+32
|
* testsuites: Remove CONFIGURE_MALLOC_STATISTICSSebastian Huber2020-03-313-8/+0
| | | | | | This configuration option is obsolete since 2014. Update #1367.
* libio: Add POSIX user environment pointer to TCBSebastian Huber2020-02-253-5/+1
| | | | | | | | | | The IO library used a POSIX key to store an optional POSIX user environment pointer. This pulled in the POSIX keys support in every application configuration. Add a user environment pointer to the thread control block (TCB) instead. Applications which do not need the POSIX user environment will just get an overhead of one pointer per thread. Close #3882.
* config: Remove CONFIGURE_POSIX_HAS_OWN_INIT_THREAD_TABLESebastian Huber2020-02-252-48/+14
| | | | | | | | | | | | | | | | | | | The CONFIGURE_HAS_OWN_INIT_TASK_TABLE and CONFIGURE_POSIX_HAS_OWN_INIT_THREAD_TABLE are the last *_HAS_OWN_* configuration options. These two options are probably unused, see also: * https://lists.rtems.org/pipermail/users/2019-April/033129.html * https://lists.rtems.org/pipermail/users/2019-April/033130.html Removing them simplifies the configuration. If there is a real user need which shows up after the removal, we can resurrect them on demand. Using CONFIGURE_POSIX_HAS_OWN_INIT_THREAD_TABLE would have required the use of the undocumented CONFIGURE_POSIX_INIT_THREAD_TABLE_NAME and CONFIGURE_POSIX_INIT_THREAD_TABLE_SIZE configuration options. Update #3874.
* psxmsgq03: Adjust test caseSebastian Huber2020-01-281-1/+1
| | | | | | | Commit e22554535796fc29a7ed7c5e2338128e324a621d changed the error status from ENOMEM to EAGAIN. Update #3857.
* posix_devctl - Add support for SOCKCLOSEJoel Sherrill2020-01-174-2/+38
| | | | | | | | | The FACE Technical Standard, Edition 3.0 and later require the definition of the subcommand SOCKCLOSE in <devctl.h>. Reference: ​https://www.opengroup.org/face closes #3856.
* config: CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORSSebastian Huber2019-12-1925-28/+28
| | | | | | | Rename CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS into CONFIGURE_MAXIMUM_FILE_DESCRIPTORS. Update #3753.
* config: Add CONFIGURE_IMFS_ENABLE_MKFIFOSebastian Huber2019-12-132-3/+2
| | | | | | | | Obsolete undocumented configuration options CONFIGURE_MAXIMUM_FIFOS and CONFIGURE_MAXIMUM_PIPES. Replace these options with the new CONFIGURE_IMFS_ENABLE_MKFIFO configuration option. Update #3840.
* libtest: Change expected pass state stringSebastian Huber2019-12-052-2/+2
| | | | Use separator character '_' for all test states.
* Move feature macro before "config.h" includeSebastian Huber2019-12-0227-43/+67
| | | | | | | This allows to use header includes in "config.h" to reduce the build configuration checks. Update #3818.
* psxinttypes01: Remove invalid test casesSebastian Huber2019-11-263-30/+6
| | | | | | 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.
* sptests: Avoid include path magicSebastian Huber2019-11-125-22/+36
| | | | Update #3818.
* tests: Simplify fatal error test supportSebastian Huber2019-11-123-87/+44
| | | | | | Move system.h to shared init.c. Update #3818.
* psxtests: Avoid build system defined definesSebastian Huber2019-11-124-255/+241
| | | | Update #3818.
* psxfenv01: Check FE_DIVBYZERO defineSebastian Huber2019-11-121-0/+2
|
* psxtests/psxualarm: Fix test failureSebastian Huber2019-10-011-0/+8
| | | | Update #3794.
* Correct initial POSIX signals maskJoel Sherrill2019-09-2413-0/+513
| | | | | | | | | | | | + Modify POSIX thread create extension to ensure expected initial signal mask is provided to system threads, initial tasks and threads, and inheritied by tasks and threads. + Adds psxsignal07 to verify functionality when using a POSIX Initialization thread and POSIX threads. + Adds psxsignal08 to verify functionality when using a Classic API Initialization task and Classic API tasks. Closes #3794.
* Add psxfenv01 test to psxtestsVaibhav Gupta2019-09-105-2/+173
| | | | | | Note that this test requires a functional fenv implementation. Some targets have multilib variants where the fenv implementation is not 100% passing.
* psxtests: Add ndbm test suiteVaibhav Gupta2019-07-305-0/+379
| | | | | | | | | Joel Sherrill <joel@rtems.org> modified the patch to add autoconf logic to avoid building this new test unless the tool chain include <ndbm.h>. The ensures that git bisect continues to work and that the addition of this test does not immediately force the entire community to update their tools.
* psxtests: Add psxinttypes01 for <inttypes.h> methodsVaibhav Gupta2019-06-195-0/+327
|
* Makefile.am: Add psxhdrs/termios files to buildJoel Sherrill2019-05-071-12/+12
|
* psxhdrs: Add POSIX API Signature Compliance Tests for termios.hJacob Shin2019-05-0712-0/+560
|
* rtems: Add rtems_scheduler_get_processor_maximum()Sebastian Huber2019-04-091-1/+2
| | | | | | | | | | | Add rtems_scheduler_get_processor_maximum() as a replacement for rtems_get_processor_count(). The rtems_get_processor_count() is a bit orphaned. Adopt it by the Scheduler Manager. The count is also misleading, since the processor set may have gaps and the actual count of online processors may be less than the value returned by rtems_get_processor_count(). Update #3732.
* psxhdrs/stdio/v*.c: Fix warnings in varargs testsJoel Sherrill2019-03-258-16/+26
|
* testsuite: Make the OPERATION_COUNT a test configuration parameter.Chris Johns2019-03-072-19/+22
| | | | | - Add a small memory test config file. - Update the small memory PowerPC BSPs to use the new test config.
* psxtests/psxonce01: Fix typoSebastian Huber2019-02-181-2/+2
| | | | Update #3334.
* score: Avoid some deadlocks in _Once()Sebastian Huber2019-02-183-19/+80
| | | | | | | | Recursive usage of the same pthread_once_t results now in a deadlock. Previously, an error of EINVAL was returned. This usage scenario is invalid according to the POSIX pthread_once() specification. Close #3334.
* psxtests: Remove bogus fileSebastian Huber2019-02-121-38/+0
| | | | | | This file is unused and makes trouble on Windows. Updates #3638.
* build: Do not install test programsSebastian Huber2019-01-301-3/+1
|
* Fix format warnings due to ino_t changesSebastian Huber2019-01-101-1/+1
|
* psxconfig01: Fix pre-processor conditionsSebastian Huber2019-01-101-20/+20
| | | | | | Do not rely on compiler optimizations to throw away empty loops. Close #3673.