summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* posix: Remove rtems_pthread_attribute_compare()Sebastian Huber2017-10-091-1/+67
| | | | | Update #2514. Close #3174.
* posix: Simplify POSIX_API_ControlSebastian Huber2017-10-092-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.
* psxtests/psx05: Fix timeout calculationSebastian Huber2017-10-091-9/+3
| | | | Update #3111.
* posix: Implement self-contained POSIX mutexSebastian Huber2017-10-0517-63/+194
| | | | | | | | POSIX mutexes are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3112.
* posix: Implement self-contained POSIX condvarSebastian Huber2017-10-0514-47/+185
| | | | | | | | POSIX condition variables are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3113.
* posix: Implement self-contained POSIX rwlocksSebastian Huber2017-10-054-71/+203
| | | | | | | | POSIX rwlocks are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3115.
* posix: Implement self-contained POSIX barriersSebastian Huber2017-10-054-41/+63
| | | | | | | | POSIX barriers are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3114.
* posix: Implement self-contained POSIX semaphoresSebastian Huber2017-10-053-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.
* posix: Allow PTHREAD_PROCESS_SHARED for rwlocksSebastian Huber2017-09-221-0/+38
| | | | Close #3153.
* psxrdwrv/test.c: Clear iovec to ensure consistent resultsJoel Sherrill2017-09-211-0/+3
| | | | closes #3148.
* posix: Allow PTHREAD_PROCESS_SHARED for condvarSebastian Huber2017-09-152-2/+29
| | | | Close #3137.
* posix: Allow PTHREAD_PROCESS_SHARED for barriersSebastian Huber2017-09-152-2/+23
| | | | Close #3126.
* posix: Allow PTHREAD_PROCESS_SHARED for mutexesSebastian Huber2017-09-152-4/+7
| | | | Close #3125.
* libio: Do simple parameter checks earlySebastian Huber2017-09-151-3/+9
| | | | | | This simplifies error handling later. Update #3132.
* posix: Ignore pshared for semaphoresSebastian Huber2017-09-121-5/+9
| | | | | | Since we have only one process, sharing between processes is trivial. Close #3124.
* psxconfig01/init.c: Fix printf() format warningsJoel Sherrill2017-08-271-6/+6
|
* psximfs02/init.c: Increase size of buffer to avoid overwriteJoel Sherrill2017-07-281-2/+2
|
* psxmmap01/init.c: Correct printf() format specifierJoel Sherrill2017-07-281-1/+1
|
* psxtests/psxmmap01: Fix warningSebastian Huber2017-07-281-1/+1
| | | | Update #2859.
* psxmmap01/test_helper.c: Use correct printf format for size_tJoel Sherrill2017-07-271-1/+1
|
* psxmmap01/test_driver.c: Fix mmap_h handler type mismatchJoel Sherrill2017-07-271-1/+1
|
* tests: Use floating point taskSebastian Huber2017-07-191-0/+2
| | | | | | | These tests directly or indirectly use fprintf(), etc. which may use the floating point unit. Update #3076.
* psxtests: Add a mmap dedicated test caseKevin Kirspel2017-07-1410-0/+553
| | | | Updates #2859
* psxstat/test.c: Avoid potential string overflowJoel Sherrill2017-06-211-2/+5
|
* psximfs02/init.c: Avoid potential string overflowJoel Sherrill2017-06-211-2/+2
|
* confdefs.h: CONFIGURE_DISABLE_SMP_CONFIGURATIONSebastian Huber2017-05-111-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.
* posix/mman: add mmap support for shm objectsGedare Bloom2017-05-051-1/+2
| | | | Update #2859.
* psxtests/Makefile.am: Disable tests which should not be built when POSIX is ↵Joel Sherrill2017-04-251-2/+2
| | | | disabled
* rtems/inttypes.h: Add blksize_t and blkcnt_tJoel Sherrill2017-04-221-29/+1
|
* psxstrsignal01: Remove warningsJoel Sherrill2017-04-041-0/+4
|
* testsuite: Add a common test configuration. Fix configure.ac and Makefile.am ↵Chris Johns2017-04-042-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.
* psxstrsignal01: New testJoel Sherrill2017-03-156-1/+198
|
* psxtests: Fix warningsSebastian Huber2017-02-152-10/+9
|
* psxsem01: Fix warningSebastian Huber2017-02-141-1/+1
|
* Prefix confdefs.h internal def with an underscoreSebastian Huber2017-02-031-1/+1
| | | | Close #2895.
* psxtests: Relax shared memory testsSebastian Huber2017-01-252-18/+24
| | | | | | There is currently no proper mmap() implementation. Update #2859.
* posix: shared memory supportGedare Bloom2017-01-1310-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.
* posix: move sys/mman.h to newlib and test it in psxhdrsGedare Bloom2017-01-1312-0/+322
|
* posix: Add pthread_getname_np(), ...Sebastian Huber2017-01-136-0/+134
| | | | | | Add pthread_getname_np() and pthread_setname_np(). Update #2858.
* Remove obsolete __RTEMS_HAVE_SYS_CPUSET_H__Joel Sherrill2017-01-111-3/+0
|
* Add support for posix_devctl()Joel Sherrill2017-01-119-0/+225
|
* Add INTERNAL_ERROR_POSIX_INIT_THREAD_CREATE_FAILEDSebastian Huber2016-12-121-2/+2
| | | | Update #2825.
* Rename is_internal to always_set_to_falseSebastian Huber2016-12-122-4/+4
| | | | Update #2825.
* score: Remove fatal is internal indicatorSebastian Huber2016-12-093-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.
* posix: Add self-contained pthread spinlockSebastian Huber2016-11-2311-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.
* psxtests/psxkey08: Avoid rtems_semaphore_flush()Sebastian Huber2016-11-232-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.
* termios: Use IMFS nodes for new Termios devicesSebastian Huber2016-09-191-1/+2
| | | | | | | | This makes the new Termios devices independent of device major/minor numbers. It enables BSP independent Termios device drivers which may reside in the cpukit domain. These drivers require an IMFS and do not work with the device file system. However, the device file system should go away in the future.
* psxtests: Adjust sporadic server testsSebastian Huber2016-08-183-99/+64
| | | | | | | | | | | | | According to POSIX priority value returned from pthread_getschedparam() shall be the value specified by the most recent pthread_setschedparam(), pthread_setschedprio(), or pthread_create() call affecting the target thread. Read this as though a temporary lower priority due to the sporadic server policy shall not be visible through pthread_getschedparam(). Thus, use rtems_task_set_priority() to get the current priority of the threads. Use a priority ceiling mutex to prevent sporadic server priority adjustments.
* posix: add clock_nanosleep and testsGedare Bloom2016-07-252-0/+36
| | | | updates #2732
* libcsupport: Add dummy for setgroups().Christian Mauderer2016-06-282-0/+34
| | | | | The dummy for setgroups() allows applications using it to build (for example civetweb webserver).