summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-10-17posix: Remove POSIX_API_Control::schedparamSebastian Huber1-5/+1
Move sporadic server scheduler parameters to POSIX_API_Control::Sporadic. Remove redundant scheduler priority parameter. Update #2514.
2017-10-17posix: Fix _POSIX_Threads_Create_extension()Sebastian Huber1-0/+8
The thread POSIX API control must be fully initialized in _POSIX_Threads_Create_extension(), otherwise a pthread_setschedparam() is broken for all threads not created with pthread_create().
2017-10-10posix: Constify default thread processor affinitySebastian Huber2-0/+8
Set default thread processor affinity to all processors of the pre-allocated set. This allows to constify the _POSIX_Threads_Default_attributes. Update #2514.
2017-10-10posix: Simplify pthread_attr_setstack()Sebastian Huber1-1/+4
Simplify * pthread_attr_setstack(), and * pthread_attr_setstacksize(). Update #2514.
2017-10-09posix: Remove rtems_pthread_attribute_compare()Sebastian Huber1-1/+67
Update #2514. Close #3174.
2017-10-09posix: Simplify POSIX_API_ControlSebastian Huber2-2/+40
Return stack area via pthread_getattr_np(). Simplify * pthread_attr_setaffinity_np(), and * pthread_attr_getaffinity_np() and let the scheduler do the more sophisticated error checks. Make * pthread_setaffinity_np(), * pthread_getaffinity_np(), * pthread_attr_setaffinity_np(), and * pthread_attr_getaffinity_np() available in all configurations. Update #2514. Close #3145. Close #3168.
2017-10-09psxtests/psx05: Fix timeout calculationSebastian Huber1-9/+3
Update #3111.
2017-10-05posix: Implement self-contained POSIX mutexSebastian Huber17-63/+194
POSIX mutexes are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3112.
2017-10-05posix: Implement self-contained POSIX condvarSebastian Huber14-47/+185
POSIX condition variables are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3113.
2017-10-05posix: Implement self-contained POSIX rwlocksSebastian Huber4-71/+203
POSIX rwlocks are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3115.
2017-10-05posix: Implement self-contained POSIX barriersSebastian Huber4-41/+63
POSIX barriers are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3114.
2017-10-05posix: Implement self-contained POSIX semaphoresSebastian Huber3-16/+227
For semaphore object pointer and object validation see POSIX_SEMAPHORE_VALIDATE_OBJECT(). Destruction or close of a busy semaphore returns an error status. The object is not flushed. POSIX semaphores are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3116.
2017-09-22posix: Allow PTHREAD_PROCESS_SHARED for rwlocksSebastian Huber1-0/+38
Close #3153.
2017-09-21psxrdwrv/test.c: Clear iovec to ensure consistent resultsJoel Sherrill1-0/+3
closes #3148.
2017-09-15posix: Allow PTHREAD_PROCESS_SHARED for condvarSebastian Huber2-2/+29
Close #3137.
2017-09-15posix: Allow PTHREAD_PROCESS_SHARED for barriersSebastian Huber2-2/+23
Close #3126.
2017-09-15posix: Allow PTHREAD_PROCESS_SHARED for mutexesSebastian Huber2-4/+7
Close #3125.
2017-09-15libio: Do simple parameter checks earlySebastian Huber1-3/+9
This simplifies error handling later. Update #3132.
2017-09-12posix: Ignore pshared for semaphoresSebastian Huber1-5/+9
Since we have only one process, sharing between processes is trivial. Close #3124.
2017-08-27psxconfig01/init.c: Fix printf() format warningsJoel Sherrill1-6/+6
2017-07-28psximfs02/init.c: Increase size of buffer to avoid overwriteJoel Sherrill1-2/+2
2017-07-28psxmmap01/init.c: Correct printf() format specifierJoel Sherrill1-1/+1
2017-07-28psxtests/psxmmap01: Fix warningSebastian Huber1-1/+1
Update #2859.
2017-07-27psxmmap01/test_helper.c: Use correct printf format for size_tJoel Sherrill1-1/+1
2017-07-27psxmmap01/test_driver.c: Fix mmap_h handler type mismatchJoel Sherrill1-1/+1
2017-07-19tests: Use floating point taskSebastian Huber1-0/+2
These tests directly or indirectly use fprintf(), etc. which may use the floating point unit. Update #3076.
2017-07-14psxtests: Add a mmap dedicated test caseKevin Kirspel10-0/+553
Updates #2859
2017-06-21psxstat/test.c: Avoid potential string overflowJoel Sherrill1-2/+5
2017-06-21psximfs02/init.c: Avoid potential string overflowJoel Sherrill1-2/+2
2017-05-11confdefs.h: CONFIGURE_DISABLE_SMP_CONFIGURATIONSebastian Huber1-0/+2
Enable the SMP configuration by default in case SMP is enabled. Add configuration option CONFIGURE_DISABLE_SMP_CONFIGURATION to disable it explicitly. Add CONFIGURE_DISABLE_SMP_CONFIGURATION to all test which would fail otherwise. Update #3001.
2017-05-05posix/mman: add mmap support for shm objectsGedare Bloom1-1/+2
Update #2859.
2017-04-25psxtests/Makefile.am: Disable tests which should not be built when POSIX is ↵Joel Sherrill1-2/+2
disabled
2017-04-22rtems/inttypes.h: Add blksize_t and blkcnt_tJoel Sherrill1-29/+1
2017-04-04psxstrsignal01: Remove warningsJoel Sherrill1-0/+4
2017-04-04testsuite: Add a common test configuration. Fix configure.ac and Makefile.am ↵Chris Johns2-34/+117
errors. - Add a top level test configuration file for test states that are common to all BSPs. This saves adding a test configuration (tcfg) file for every BSP. - Add the test states 'user-input' and 'benchmark'. This lets 'rtems-test' stop the test rather than waiting for a timeout or letting a benchmark run without the user asking for it to run. - Implement rtems-test-check in Python to make it faster. The shell script had grown to a point it was noticably slowing the build down. - Fix the configure.ac and Makefile.am files for a number of the test directories. The files are difficiult to keep in sync with the number of tests and mistakes can happen such as tests being left out of the build. The test fsrofs01 is an example. Also a there was a mix of SUBDIRS and _SUBDIRS being used and only _SUBDIRS should be used. - Fix the test fsrofs01 so it compiles. Closes #2963.
2017-03-15psxstrsignal01: New testJoel Sherrill6-1/+198
2017-02-15psxtests: Fix warningsSebastian Huber2-10/+9
2017-02-14psxsem01: Fix warningSebastian Huber1-1/+1
2017-02-03Prefix confdefs.h internal def with an underscoreSebastian Huber1-1/+1
Close #2895.
2017-01-25psxtests: Relax shared memory testsSebastian Huber2-18/+24
There is currently no proper mmap() implementation. Update #2859.
2017-01-13posix: shared memory supportGedare Bloom10-2/+297
Add POSIX shared memory manager (Shm). Includes a hook-based approach for the backing memory storage that defaults to the Workspace, and a test is provided using the heap. A test is also provided for the basic use of mmap'ing a shared memory object. This test currently fails at the mmap stage due to no support for mmap.
2017-01-13posix: move sys/mman.h to newlib and test it in psxhdrsGedare Bloom12-0/+322
2017-01-13posix: Add pthread_getname_np(), ...Sebastian Huber6-0/+134
Add pthread_getname_np() and pthread_setname_np(). Update #2858.
2017-01-11Remove obsolete __RTEMS_HAVE_SYS_CPUSET_H__Joel Sherrill1-3/+0
2017-01-11Add support for posix_devctl()Joel Sherrill9-0/+225
2016-12-12Add INTERNAL_ERROR_POSIX_INIT_THREAD_CREATE_FAILEDSebastian Huber1-2/+2
Update #2825.
2016-12-12Rename is_internal to always_set_to_falseSebastian Huber2-4/+4
Update #2825.
2016-12-09score: Remove fatal is internal indicatorSebastian Huber3-10/+3
The fatal is internal indicator is redundant since the fatal source and error code uniquely identify a fatal error. Keep the fatal user extension is internal parameter for backward compatibility and set it to false always. Update #2825.
2016-11-23posix: Add self-contained pthread spinlockSebastian Huber11-417/+67
Turn pthread_spinlock_t into a self-contained object. On uni-processor configurations, interrupts are disabled in the lock/trylock operations and the previous interrupt status is restored in the corresponding unlock operations. On SMP configurations, a ticket lock is a acquired and released in addition. The self-contained pthread_spinlock_t object is defined by Newlib in <sys/_pthreadtypes.h>. typedef struct { struct _Ticket_lock_Control _lock; __uint32_t _interrupt_state; } pthread_spinlock_t; This implementation is simple and efficient. However, this test case of the Linux Test Project would fail due to call of printf() and sleep() during spin lock ownership: https://github.com/linux-test-project/ltp/blob/master/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_lock/1-2.c There is only limited support for profiling on SMP configurations. Delete CORE spinlock implementation. Update #2674.
2016-11-23psxtests/psxkey08: Avoid rtems_semaphore_flush()Sebastian Huber2-48/+42
Avoid rtems_semaphore_flush() to reduce the maximum thread dispatch disabled time of this test. Remove superfluous yield and malloc(). Ensure that no resource leak occurs.