summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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).
* testsuites: Increase invalid priority valuesSebastian Huber2016-06-241-1/+1
| | | | | | Increase the invalid priority values to support test runs with alternative schedulers offering a significant higher maximum priority value, e.g. EDF.
* score: Introduce map priority scheduler operationSebastian Huber2016-06-221-0/+4
| | | | | | | | | | | Introduce map/unmap priority scheduler operations to map thread priority values from/to the user domain to/from the scheduler domain. Use the map priority operation to validate the thread priority. The EDF schedulers use this new operation to distinguish between normal priorities and priorities obtain through a job release. Update #2173. Update #2556.
* posix: pthread_mutexattr_setprioceiling()Sebastian Huber2016-06-222-13/+23
| | | | | | | Accept all priority values in pthread_mutexattr_setprioceiling(). This is in line with POSIX and FreeBSD. The priority is validated in pthread_mutex_init(). Validate the priority only for priority ceiling mutexes.
* Add pthread_condattr_getclock() and pthread_condattr_setclock()Joel Sherrill2016-06-166-1/+170
| | | | updates #2608.
* psxtests/psx12: Use and print proper rounded msSebastian Huber2016-06-152-21/+26
| | | | Update #2738.
* posix: Fix poradic server initial CPU budgetSebastian Huber2016-06-152-14/+107
| | | | Update #2738.
* psxtests/psx12: Use one file and simplifySebastian Huber2016-06-155-134/+33
|
* posix: Add pthread_setschedprio()Sebastian Huber2016-06-131-0/+30
| | | | Close #2734.
* posix: Fix pthread_setschedparam()Sebastian Huber2016-06-131-0/+54
| | | | Close #2735.
* posix: Fix pthread_getschedparam()Sebastian Huber2016-06-131-0/+46
| | | | | | Return the unmodified thread priority value according to POSIX. Close #2736.
* posix: Fix sem_init() with too large initial valueSebastian Huber2016-05-261-0/+12
| | | | Close #2721.
* Fix semaphore post overflow statusSebastian Huber2016-05-261-0/+34
| | | | Close #2720.
* posix: Fix pthread_spin_unlock() error statusSebastian Huber2016-05-252-5/+11
| | | | Close #2719.
* cpukit, testsuite: Add rtems_printf and rtems_printer support.Chris Johns2016-05-251-3/+5
| | | | | | | | | | | | | | | | | | | This change adds rtems_printf and related functions and wraps the RTEMS print plugin support into a user API. All references to the plugin are removed and replaced with the rtems_printer interface. Printk and related functions are made to return a valid number of characters formatted and output. The function attribute to check printf functions has been added to rtems_printf and printk. No changes to remove warrnings are part of this patch set. The testsuite has been moved over to the rtems_printer. The testsuite has a mix of rtems_printer access and direct print control via the tmacros.h header file. The support for begink/endk has been removed as it served no purpose and only confused the code base. The testsuite has not been refactored to use rtems_printf. This is future work.
* psxtests/psxmsgq01: Fix typoSebastian Huber2016-05-241-1/+1
|
* score: Fix blocking _CORE_message_queue_Submit()Sebastian Huber2016-05-242-0/+78
| | | | Close #2718.
* psxtests/psxmsgq01: Enable test caseSebastian Huber2016-05-242-5/+4
|
* psxclassic01: Assume correct pthread_detach()Sebastian Huber2016-05-202-10/+31
| | | | Update #2714.
* psxtests/psxualarm: Avoid output in signal handlerSebastian Huber2016-05-182-14/+7
| | | | | | Avoid output in signal handler to not disturb the timings which are checked in this test. Use asserts to ensure proper signal handler invocations.
* posix: Fix return states of pthread_kill()Sebastian Huber2016-05-171-6/+2
| | | | | | POSIX mandates that an error code is returned and not -1 plus errno. Close #2715.
* psxtests/psxcancel: Add pthread_detach() testsSebastian Huber2016-05-172-0/+87
| | | | Update #2714.
* psxtests/psxcancel: Add resource checkSebastian Huber2016-05-171-8/+26
|
* posix: Fix return status of pthread_cancel()Sebastian Huber2016-05-171-2/+2
| | | | | | | POSIX recommends ESRCH in case no thread exists for the specified identifier. Close #2713.
* rtems: Remove task variablesSebastian Huber2016-05-041-29/+0
| | | | | Update #2494. Update #2555.
* confdefs.h: Fix named object size estimateSebastian Huber2016-05-041-5/+5
| | | | | | Account for the terminating null character. Use _POSIX_PATH_MAX instead of NAME_MAX according to _POSIX_Semaphore_Manager_initialization() and _POSIX_Message_queue_Manager_initialization().
* posix: Simplify message queuesSebastian Huber2016-05-022-6/+0
| | | | | | | | | | | | The mq_open() function returns a descriptor to a POSIX message queue object identified by a name. This is similar to sem_open(). In contrast to the POSIX semaphore the POSIX message queues use a separate object for the descriptor. This extra object is superfluous, since the object identifier can be used directly for this purpose, just like for the semaphores. Update #2702. Update #2555.
* score: Simplify _Objects_Initialize_information()Sebastian Huber2016-04-211-6/+2
| | | | | | Remove unused supports_global parameter. Convert _Objects_Initialize_information() to a macro to avoid use of RTEMS_MULTIPROCESSING define for each caller.
* posix: Avoid Giant lock for mutexesSebastian Huber2016-04-213-1/+48
| | | | | | | Delete _POSIX_Mutex_Get(). Use _POSIX_Mutex_Get_interrupt_disable() instead. Update #2555.
* score: Fix _CORE_semaphore_Flush()Sebastian Huber2016-04-211-1/+51
| | | | | | | Use proper CORE_semaphore_Status for _CORE_semaphore_Flush() and _CORE_semaphore_Destroy() operations. Close #2696.
* Add pthread_getconcurrency() and pthread_setconcurrency()Joel Sherrill2016-04-149-1/+186
| | | | | | | | | This is the very simple implementation specified by the Open Group for implementations with 1:1 kernel thread to user thread mappings. http://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_getconcurrency.html updates #2680.
* posix: Run key destructors during thread restartSebastian Huber2016-04-142-13/+100
| | | | | | | | | | POSIX key destructors must be called during thread restart. Just like the POSIX cleanup handlers. This ensures that the TLS object destructors are called during thread restart for example. It is important for the global construction, which uses a thread restart to run the Init task in a clean environment. Close #2689.
* psxtests/psxobj01: Fix for RTEMS_DEBUGSebastian Huber2016-03-221-0/+7
|
* score: Add _Objects_Get_by_name()Sebastian Huber2016-03-186-67/+62
| | | | | | | | | | Replace _Objects_Name_to_id_string() with _Objects_Get_by_name() since all users of this function are interested in the object itself and not the identifier. Use the object allocator lock to protect the search. Update #2555.
* score: Replace watchdog handler implementationSebastian Huber2016-03-041-1/+6
| | | | | | | | | Use a red-black tree instead of delta chains. Close #2344. Update #2554. Update #2555. Close #2606.
* psxtests/psxualarm: Add test casesSebastian Huber2016-02-221-38/+35
| | | | Update #2344.
* psxtests/psxalarm01: Add adjtime() test caseSebastian Huber2016-02-221-29/+19
| | | | Update #2606.
* psxtests: Disable POSIX only psxcleanup02Sebastian Huber2016-01-261-1/+1
|
* psxtests: Fix link-time errorsSebastian Huber2016-01-196-93/+2
| | | | | | | Fix link-time errors introduced by e39cdb875ce7458787b0be173f2f7893a774a673. Update #2531.