Commit Graph

428 Commits

Author SHA1 Message Date
Joel Sherrill
c45ca10375 2009-08-19 Joel Sherrill <joel.sherrill@OARcorp.com>
* psx09/init.c, psx09/psx09.scn: Correct test following decision of
	when not to change ssporadic scheduler so it does not touch a task's
	priority when it is holding a mutex or its priority would be impacted
	adversely.
2009-08-19 17:28:19 +00:00
Joel Sherrill
9f49b43378 Give credit to Santosh. 2009-08-19 17:26:38 +00:00
Joel Sherrill
4e7ca87212 2009-08-19 Joel Sherrill <joel.sherrill@OARcorp.com>
* psxtime/main.c, psxtime/psxtime.scn, psxtime/test.c: Add test case
	for adjusting time (adjtime()) where the time is adjusted by enough
	microseconds that it crosses a second boundary.
2009-08-19 15:13:34 +00:00
Joel Sherrill
712726d3df 2009-08-19 Joel Sherrill <joel.sherrill@OARcorp.com>
* psx07/init.c, psx07/psx07.scn, psx07/system.h, psx07/task.c: Update
	test to reflect not allowing poriority changes when mutex is locked.
2009-08-19 14:55:24 +00:00
Joel Sherrill
84f27fa8fa 2009-08-18 Joel Sherrill <joel.sherrill@OARcorp.com>
* psx01/init.c, psx01/psx01.scn: Add test case for nanosleep with NULL
	remaining pointer.
2009-08-18 14:39:33 +00:00
Joel Sherrill
4f79a900cb Revert configure.ac change. 2009-08-17 17:44:36 +00:00
Joel Sherrill
49325ef13c 2009-08-17 Santosh G Vattam <vattam.santosh@gmail.com>
* configure.ac, psx05/init.c, psx05/psx05.scn: Add test case for
	initializing a recursize mutex.
2009-08-17 17:43:35 +00:00
Joel Sherrill
c9460e17ed 2009-08-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxfile01/test.c, psxstat/test.c, psxtime/test.c: Eliminate test
	routines TICKS_PER_SECOND and get_ticks_per_second() in favor of new
	rtems_clock_get_ticks_per_second().
2009-08-12 20:50:35 +00:00
Joel Sherrill
de90869d97 2009-08-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxsignal01/init.c: Convert calls to legacy routine rtems_clock_get(
	RTEMS_CLOCK_GET_xxx, ..) to rtems_clock_get_xxx().
2009-08-10 16:05:02 +00:00
Joel Sherrill
78076a2ce4 2009-08-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxstat/test.c, psxtime/test.c: Convert calls to legacy routine
	rtems_clock_get( RTEMS_CLOCK_GET_TOD, ..) to rtems_clock_get_tod(..).
2009-08-10 14:50:02 +00:00
Joel Sherrill
c05f201080 2009-08-06 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, configure.ac: Add test case for user providing their own
	stack to a POSIX thread.
	* psxstack01/.cvsignore, psxstack01/Makefile.am, psxstack01/init.c,
	psxstack01/psxstack01.doc, psxstack01/psxstack01.scn: New files.
2009-08-07 00:42:47 +00:00
Joel Sherrill
c005d41297 2009-08-06 Joel Sherrill <joel.sherrill@OARcorp.com>
* psxmsgq04/init.c, psxmsgq04/psxmsgq04.scn: Tinker with test to ensure
	that it hits both failing to allocate memory for the message queue
	name and message buffers.
2009-08-06 19:24:38 +00:00
Joel Sherrill
0d214a7c29 2009-08-06 Joel Sherrill <joel.sherrill@OARcorp.com>
* psxintrcritical01/init.c: Lower microseconds per tick so tests run
	quicker and more reliably hit the intended critical section.
2009-08-06 19:24:12 +00:00
Joel Sherrill
b053cab093 2009-08-05 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, configure.ac: Add a test to exercise an odd case in
	_POSIX_signals_Clear_signals.
	* psxsignal05/.cvsignore, psxsignal05/Makefile.am, psxsignal05/init.c,
	psxsignal05/psxsignal05.doc, psxsignal05/psxsignal05.scn: New files.
2009-08-05 18:13:29 +00:00
Joel Sherrill
7d89924051 2009-08-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxmsgq04/init.c: Correct typo in configuration so test does as
	intended.
2009-08-05 16:43:54 +00:00
Joel Sherrill
236839e208 2009-08-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxmsgq04/init.c, psxmsgq04/psxmsgq04.doc, psxmsgq04/psxmsgq04.scn:
	Update to handle ENFILE case now that POSIX message queues and
	message queue file descriptors are configured separately and this
	error is possible.
2009-08-05 16:33:36 +00:00
Joel Sherrill
6605d4dc99 2009-08-05 Santosh G Vattam <vattam.santosh@gmail.com>
* Makefile.am, psxmsgq04/init.c, psxmsgq04/psxmsgq04.doc,
	psxmsgq04/psxmsgq04.scn: Exercise running out of memory while
	allocating the message buffers for a POSIX message queue.
2009-08-05 15:21:43 +00:00
Joel Sherrill
307b6b9cc4 2009-08-02 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxsignal03/init.c, psxsignal03/psxsignal03.scn,
	psxsignal04/psxsignal04.scn: Correct test numbers in macros so output
	is right. Update both screens.
2009-08-02 15:00:05 +00:00
Joel Sherrill
70a66ca5d3 2009-08-02 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac, psxsignal03/Makefile.am,
	psxsignal03/init.c, psxsignal03/psxsignal03.doc: Add new test
	variation which focused on real-time signals rather than user
	signals.
	* psxsignal04/.cvsignore, psxsignal04/Makefile.am,
	psxsignal04/psxsignal04.doc, psxsignal04/psxsignal04.scn: New files.
2009-08-02 14:41:46 +00:00
Joel Sherrill
c9c05a02e5 2009-08-01 Joel Sherrill <joel.sherrill@oarcorp.com>
* psx07/init.c, psx07/psx07.scn, psx07/task.c: Add test for budget and
	replenish period of zero.
2009-08-01 21:47:09 +00:00
Joel Sherrill
64bad68bc8 2009-07-30 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, configure.ac: Add new test to account for properly
	handling keys when a thread has non-NULL key value and key has NULL
	destructor and when a thread has NULL key value and key has
	destructor.
	* psxkey03/.cvsignore, psxkey03/Makefile.am, psxkey03/init.c,
	psxkey03/psxkey03.doc, psxkey03/psxkey03.scn: New files.
2009-07-30 20:21:41 +00:00
Joel Sherrill
3e5a9e5176 2009-07-30 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, configure.ac: Add new test for exercising running out of
	memory while allocating the key pointers.
	* psxkey02/.cvsignore, psxkey02/Makefile.am, psxkey02/init.c,
	psxkey02/psxkey02.doc, psxkey02/psxkey02.scn: New files.
2009-07-30 18:48:56 +00:00
Joel Sherrill
0376d08fa7 2009-07-29 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxmsgq04/init.c: Add call to mq_unlink.
2009-07-29 20:27:27 +00:00
Joel Sherrill
330e858cc2 2009-07-29 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac: Add shell of new test.
	* psxmsgq04/.cvsignore, psxmsgq04/Makefile.am, psxmsgq04/init.c,
	psxmsgq04/psxmsgq04.doc, psxmsgq04/psxmsgq04.scn: New files.
2009-07-29 20:15:33 +00:00
Joel Sherrill
2ad8f85825 2009-07-29 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, configure.ac: Add test to address cases where a thread
	is waiting on a signal (sigwait) and we send it. Also address case
	where there are too many queued signals.
	* psxsignal03/.cvsignore, psxsignal03/Makefile.am, psxsignal03/init.c,
	psxsignal03/psxsignal03.doc, psxsignal03/psxsignal03.scn: New files.
2009-07-29 18:31:20 +00:00
Joel Sherrill
a2b8140290 2009-07-29 Joel Sherrill <joel.sherrill@OARcorp.com>
* psxsignal02/init.c: Fix spacing.
2009-07-29 18:30:45 +00:00
Joel Sherrill
5d8b8eb1f5 2009-07-28 Santosh G Vattam <vattam.santosh@gmail.com>
* psxmsgq01/init.c, psxmsgq01/psxmsgq01.scn: Add tests for various
	mq_timedreceive and mq_timedsend conditions. In particular test
	timeout in the past.
2009-07-28 13:46:03 +00:00
Joel Sherrill
42d57c7ac6 2009-07-28 Santosh G Vattam <vattam.santosh@gmail.com>
* psx05/init.c, psx05/psx05.scn: Add test for pthread_mutex_timedlock
	with timeout in the past.
2009-07-28 13:44:58 +00:00
Joel Sherrill
b4f7353712 2009-07-24 Joel Sherrill <joel.sherrill@OARcorp.com>
* psxsignal02/psxsignal02.scn: Fill in screen file.
2009-07-24 20:37:04 +00:00
Joel Sherrill
a3e4a589d5 2009-07-24 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, configure.ac: Add new test to exercise algorithm to
	dispatch process wide signals to individual threads.
	* psxsignal02/.cvsignore, psxsignal02/Makefile.am, psxsignal02/init.c,
	psxsignal02/psxsignal02.doc, psxsignal02/psxsignal02.scn: New files.
2009-07-24 19:18:20 +00:00
Joel Sherrill
6ffde61c4c 2009-07-23 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, configure.ac: Add test to exercise interrupt
	synchronization logic in _POSIX_Timer_Insert_helper that supports
	POSIX timers.
	* psxintrcritical01/.cvsignore, psxintrcritical01/Makefile.am,
	psxintrcritical01/init.c, psxintrcritical01/psxintrcritical01.doc,
	psxintrcritical01/psxintrcritical01.scn: New files.
2009-07-23 20:30:01 +00:00
Joel Sherrill
73dfaf83a1 2009-07-23 Santosh G Vattam <vattam.santosh@gmail.com>
* psxcancel/Makefile.am, psxcancel/init.c, psxcancel/psxcancel.scn: Add
	multiple cases which complete coverage of thread cancellation.
	* psxcancel/psxcancel.doc: New file.
2009-07-23 13:29:49 +00:00
Joel Sherrill
17e3808dd5 2009-07-22 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxsem01/Makefile.am, psxsem01/init.c: Much clean up.
	* psxsem01/system.h: Removed.
2009-07-22 15:37:54 +00:00
Joel Sherrill
7e9765df6e 2009-07-22 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxsem01/init.c: Eliminate warning.
2009-07-22 15:21:13 +00:00
Joel Sherrill
381a53a801 2009-07-22 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxcancel/init.c: Clean up.
2009-07-22 14:00:09 +00:00
Joel Sherrill
56864ffc17 2009-07-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxmutexattr01/init.c: Make test optional if tools do not support
	posix mutex type attribute.
2009-07-21 17:25:46 +00:00
Joel Sherrill
14d3ad4fcf 2009-07-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac: Add new test to exercise error case for
	when a task is blocked on a condition variable with one mutex and
	another task attempts to block on the same condition variable with
	another mutex.
	* psxcond01/.cvsignore, psxcond01/Makefile.am, psxcond01/init.c,
	psxcond01/psxcond01.doc, psxcond01/psxcond01.scn: New files.
2009-07-21 15:07:26 +00:00
Joel Sherrill
1938cc07df 2009-07-19 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac: Add psxspin02 to exercise case where
	trylock is unable to obtain the spinlock and that attempting to
	unlock a spinlock from a thread which did not lock it works as
	expected.
	* psxspin02/.cvsignore, psxspin02/Makefile.am, psxspin02/main.c,
	psxspin02/psxspin02.doc, psxspin02/psxspin02.scn, psxspin02/test.c:
	New files.
2009-07-20 01:12:25 +00:00
Joel Sherrill
7c6375bbdb 2009-07-19 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxspin01/test.c: Remove unnecessary defines.
2009-07-20 01:09:40 +00:00
Joel Sherrill
3d36b370dd 2009-07-19 Joel Sherrill <joel.sherrill@oarcorp.com>
* psx11/init.c: Use explicit scheduler.
2009-07-20 01:05:59 +00:00
Joel Sherrill
5d6e8c88fb 2009-07-17 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, configure.ac: Add test to exercise
	pthread_mutexattr_gettype and pthread_mutexattr_settype now that the
	toolset enables the feature.
	* psxmutexattr01/.cvsignore, psxmutexattr01/Makefile.am,
	psxmutexattr01/init.c, psxmutexattr01/psxmutexattr01.doc,
	psxmutexattr01/psxmutexattr01.scn: New files.
2009-07-17 16:17:14 +00:00
Joel Sherrill
13a4c71cc4 2009-07-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac: Add test for auto initialization of
	message queues.
	* psxautoinit02/.cvsignore, psxautoinit02/Makefile.am,
	psxautoinit02/init.c, psxautoinit02/psxautoinit02.doc,
	psxautoinit02/psxautoinit02.scn: New files.
2009-07-16 15:00:44 +00:00
Joel Sherrill
9a845e175b 2009-07-07 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, configure.ac: Add test of pthread mutex auto
	intialization.
	* psxautoinit01/.cvsignore, psxautoinit01/Makefile.am,
	psxautoinit01/init.c, psxautoinit01/psxautoinit01.scn: New files.
2009-07-07 14:30:12 +00:00
Joel Sherrill
824b3d1c90 2009-07-06 Joel Sherrill <joel.sherrill@OARcorp.com>
* psx05/init.c, psx05/psx05.scn: Add a couple of invalid Id cases.
2009-07-06 22:01:58 +00:00
Joel Sherrill
147c5d512f 2009-07-06 Joel Sherrill <joel.sherrill@OARcorp.com>
* psxsignal01/init.c: Tune code to really hit POSIX signal from ISR
	code.
2009-07-06 21:03:05 +00:00
Joel Sherrill
69ca55c088 2009-07-06 Joel Sherrill <joel.sherrill@OARcorp.com>
* psx07/init.c: Slight test fix to ensure state of sched_param
	structure.
2009-07-06 17:58:44 +00:00
Joel Sherrill
c6dc6db074 2009-07-04 Santosh G Vattam <vattam.santosh@gmail.com>
* psxrwlock01/psxrwlock01.scn, psxrwlock01/test.c: Add test case for
	obtaining an rwlock and then releasing it twice.
2009-07-04 20:26:18 +00:00
Joel Sherrill
4a105192af 2009-07-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* psxenosys/init.c, psxenosys/psxenosys.scn: Add test of vfork stub.
2009-07-03 20:08:22 +00:00
Joel Sherrill
2819bd17b2 2009-07-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* psx04/init.c, psx04/psx04.scn: Test error cases in sigwait() and
	sigtimedwait(). Update screen file.
2009-07-03 18:39:11 +00:00
Joel Sherrill
f9ff8cea68 2009-07-01 Santosh G Vattam <vattam.santosh@gmail.com>
* psxrwlock01/psxrwlock01.scn, psxrwlock01/test.c: Add test case for
	obtaining rwlock for write with a timed lock operation when the
	abstime timeout is in the past.
2009-07-01 16:15:21 +00:00