Commit Graph

426 Commits

Author SHA1 Message Date
Joel Sherrill
c1ac715a4a 2009-08-26 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
* spstkalloc/init.c: Changed allocator signature. Functions are now
	static.
2009-08-26 12:16:36 +00:00
Joel Sherrill
39385ed563 2009-08-25 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
* sp29/init.c: Fixed return value evaluation.
	* sp59/init.c: Added status code assignment. Fixed typos.
	* sp59/init.c, sp59/sp59.scn: Added status code assignment. Fixed typos.
 	* sp63/init.c: Check return value of _Heap_Initialize().
2009-08-26 02:16:03 +00:00
Joel Sherrill
bd039332dd 2009-08-25 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
* sp59/init.c, sp59/sp59.scn: Added status code assignment. Fixed typos.
	* sp63/init.c: Check return value of _Heap_Initialize().
2009-08-26 02:13:38 +00:00
Joel Sherrill
897aa5582a 2009-08-19 Joel Sherrill <joel.sherrill@OARcorp.com>
* spwatchdog/spwatchdog.scn, spwatchdog/task1.c: Add test for
	_Watchdog_Report() when name is not NULL. This case was covered at
	-Os on erc32 but at -O2 we had more code.
2009-08-19 21:42:36 +00:00
Joel Sherrill
3a12177645 2009-08-18 Joel Sherrill <joel.sherrill@OARcorp.com>
* sp63/init.c, sp63/sp63.scn: Add case for math on size requested
	overflowing on _Heap_Allocate_aligned.
2009-08-18 18:46:21 +00:00
Joel Sherrill
7d414c33ae 2009-08-18 Joel Sherrill <joel.sherrill@OARcorp.com>
* spobjgetnext/init.c, spobjgetnext/spobjgetnext.scn: Add error cases
	for various null parameters.
2009-08-18 15:32:49 +00:00
Joel Sherrill
804e5715fd 2009-08-18 Joel Sherrill <joel.sherrill@OARcorp.com>
* sp16/sp16.scn, sp16/task1.c: Fix typo.
2009-08-18 14:15:50 +00:00
Joel Sherrill
58dbfd7c61 2009-08-17 Santosh G Vattam <vattam.santosh@gmail.com>
* sp65/init.c: Remove stray print.
	* sp65/sp65.doc: Add information on second case.
2009-08-17 17:42:21 +00:00
Joel Sherrill
146301d36b 2009-08-13 Santosh G Vattam <vattam.santosh@gmail.com>
* sp65/init.c, sp65/sp65.doc, sp65/sp65.scn: Add new test case to
	verify that obtaining a priority ceiling mutex when the calling
	task's priority is the same as the priority ceiling is handled
	correctly.
2009-08-14 01:10:23 +00:00
Joel Sherrill
1f7ee0275b 2009-08-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp02/task1.c, sp02/task2.c, sp02/task3.c, sp03/task2.c, sp05/task1.c,
	sp05/task2.c, sp05/task3.c, sp06/task1.c, sp06/task2.c,
	sp09/screen02.c, sp09/screen04.c, sp09/screen06.c, sp09/screen07.c,
	sp09/screen10.c, sp09/screen12.c, sp09/screen13.c, sp09/screen14.c,
	sp11/task1.c, sp11/task2.c, sp12/pridrv.c, sp12/pritask.c,
	sp12/task1.c, sp13/task1.c, sp13/task2.c, sp14/task1.c, sp16/task1.c,
	sp16/task4.c, sp19/fptask.c, sp19/task1.c, sp22/task1.c,
	sp24/task1.c, sp26/task1.c, sp29/init.c, sp30/task1.c, sp31/task1.c,
	sp33/init.c, sp45/init.c, sp46/init.c, sp50/init.c,
	spintrcritical06/init.c, spwatchdog/task1.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:43 +00:00
Joel Sherrill
160a0e0b97 2009-08-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp65/init.c: Add semi-colon to end of rtems_semaphore_create call.
	Change attributes to priority ceiling. Use directive_failed, not
	assert. Configure a semaphore not a region.
2009-08-12 13:11:21 +00:00
Joel Sherrill
79a0a6a9da 2009-08-12 Santosh G Vattam <vattam.santosh@gmail.com>
* ChangeLog, Makefile.am, configure.ac: Add new test for some core
	mutex cases.
	* sp65/.cvsignore, sp65/Makefile.am, sp65/init.c, sp65/sp65.doc,
	sp65/sp65.scn: New files.
2009-08-12 13:09:36 +00:00
Joel Sherrill
8d4434eb6d 2009-08-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* spintrcritical01/init.c, spintrcritical06/init.c: Use 1 millisecond
	per tick.
2009-08-11 18:49:59 +00:00
Joel Sherrill
c8ce082564 2009-08-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, configure.ac, sp62/init.c, sp64/init.c: Add new test and
	adjust existing for alignment. New test ensures coverage begin and
	end marker methods are exercised so they do not get considered
	unexecuted.
	* spcoverage/.cvsignore, spcoverage/Makefile.am, spcoverage/init.c,
	spcoverage/spcoverage.doc, spcoverage/spcoverage.scn: New files.
2009-08-11 17:53:09 +00:00
Joel Sherrill
7c11edfd82 2009-08-10 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, configure.ac: Add new test to exercise legacy
	rtems_clock_get().
	* spclockget/.cvsignore, spclockget/Makefile.am, spclockget/init.c,
	spclockget/spclockget.doc, spclockget/spclockget.scn: New files.
2009-08-10 17:04:50 +00:00
Joel Sherrill
05b9f81761 2009-08-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp04/task1.c, sp09/screen02.c, sp09/screen04.c, sp09/sp09.scn,
	sp38/init.c: Convert calls to legacy routine rtems_clock_get(
	RTEMS_CLOCK_GET_xxx, ..) to rtems_clock_get_xxx().
2009-08-10 16:04:41 +00:00
Joel Sherrill
bcf16c034d 2009-08-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp01/sp01.scn, sp01/task1.c, sp03/task1.c, sp03/task2.c,
	sp04/task1.c, sp04/tswitch.c, sp09/screen02.c, sp09/screen13.c,
	sp09/screen14.c, sp09/sp09.scn, sp11/sp11.scn, sp11/task1.c,
	sp11/task2.c, sp19/fptask.c, sp19/sp19.scn, sp19/task1.c,
	sp22/prtime.c, sp22/sp22.scn, sp22/task1.c, sp24/sp24.scn,
	sp24/task1.c, sp30/task1.c, sp31/prtime.c, sp31/sp31.scn,
	sp31/task1.c, spwatchdog/prtime.c, spwatchdog/spwatchdog.scn,
	spwatchdog/task1.c: Convert calls to legacy routine rtems_clock_get(
	RTEMS_CLOCK_GET_TOD, ..) to rtems_clock_get_tod(..).
2009-08-10 14:49:51 +00:00
Joel Sherrill
ab808e236f 2009-08-07 Joel Sherrill <joel.sherrill@OARcorp.com>
* sp28/init.c, sp28/sp28.scn: Update screen. Add a few missing error
	cases.
2009-08-07 14:04:55 +00:00
Joel Sherrill
fba809c87b 2009-08-06 Joel Sherrill <joel.sherrill@OARcorp.com>
* sp64/init.c, sp64/sp64.scn: Chris ensured that nothing is moved until
	all memory is successfully allocated. This means the test can
	validate the heap is unchanged on extend failure.
2009-08-06 20:35:41 +00:00
Joel Sherrill
ee8512aae4 2009-08-06 Joel Sherrill <joel.sherrill@OARcorp.com>
* spintrcritical01/init.c, spintrcritical06/init.c,
	spintrcritical08/init.c, spintrcritical13/init.c: Lower microseconds
	per tick so tests run quicker and more reliably hit the intended
	critical section.
2009-08-06 19:23:38 +00:00
Joel Sherrill
abc4af35f8 2009-08-05 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, configure.ac, sp63/init.c: Add new test for exercising
	when we are unable to allocate the memory needed for an object
	extend. Make sure all is handled properly.
	* sp64/.cvsignore, sp64/Makefile.am, sp64/init.c, sp64/sp64.doc,
	sp64/sp64.scn: New files.
2009-08-05 20:58:17 +00:00
Joel Sherrill
e89cf10620 2009-08-01 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp63/init.c: Correct test case two.
2009-08-01 15:34:53 +00:00
Joel Sherrill
fa4c10cbd9 2009-08-01 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp63/init.c, sp63/sp63.scn: Move into subroutines and add a second
	test case to exercise another odd branch not taken.
2009-08-01 14:40:37 +00:00
Joel Sherrill
ba23ff5e36 2009-07-31 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac, sp62/init.c: Add new test to ensure a
	particular path is taken through the _Heap_Resize_block code.
	* sp63/.cvsignore, sp63/Makefile.am, sp63/init.c, sp63/sp63.doc,
	sp63/sp63.scn: New files.
2009-08-01 00:25:20 +00:00
Joel Sherrill
7e260d67ad 2009-07-30 Joel Sherrill <joel.sherrill@OARcorp.com>
* sp42/Makefile.am, sp42/init.c, sp42/sp42.scn: Test was testing the
	wrong thing in a cpp macro. Added contents to screen file and add
	documentation file.
	* sp42/sp42.doc: New file.
2009-07-30 17:10:04 +00:00
Joel Sherrill
b1b6beb0e3 2009-07-30 Joel Sherrill <joel.sherrill@OARcorp.com>
* spintrcritical16/spintrcritical16.doc: Remove junk and typos.
2009-07-30 14:52:40 +00:00
Joel Sherrill
095105ad20 2009-07-30 Joel Sherrill <joel.sherrill@OARcorp.com>
* spintrcritical16/init.c: Tinker with test to make it hit the case
	more reliably.
2009-07-30 14:52:15 +00:00
Joel Sherrill
8b40e27c0c 2009-07-29 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac: Add new test to exercise as many cases as
	possible of not being able to allocate memory from the workspace
	during thread creation.
	* sp18/.cvsignore, sp18/Makefile.am, sp18/init.c, sp18/sp18.doc,
	sp18/sp18.scn: New files.
2009-07-30 00:15:59 +00:00
Joel Sherrill
d2861a11a0 2009-07-28 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, configure.ac: Add new test to handle the case where
	a region resize frees enough memory to unblock a task.
	* sp62/.cvsignore, sp62/Makefile.am, sp62/init.c, sp62/sp62.doc,
	sp62/sp62.scn: New files.
	* sp61/init.c: Test does not need regions.
2009-07-28 23:49:47 +00:00
Joel Sherrill
5353469af4 2009-07-28 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, configure.ac: Add test case for processing a timeout
	on a thread (that is the thread executing) that has also had its
	request satisfied while it is being enqueued.
	* spintrcritical16/.cvsignore, spintrcritical16/Makefile.am,
	spintrcritical16/init.c, spintrcritical16/spintrcritical16.doc,
	spintrcritical16/spintrcritical16.scn: New files.
	* spintrcritical15/init.c: Remove unused TSR>
2009-07-28 19:23:49 +00:00
Joel Sherrill
33692dd004 2009-07-27 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, configure.ac: Add test case for a thread timing out on a
	thread queue while another thread is in the process of blocking on
	the same thread queue.
	* spintrcritical15/.cvsignore, spintrcritical15/Makefile.am,
	spintrcritical15/init.c, spintrcritical15/spintrcritical15.doc,
	spintrcritical15/spintrcritical15.scn: New files.
2009-07-27 22:04:19 +00:00
Joel Sherrill
5d6d1a116a 2009-07-25 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac: spintrcritical15 not ready yet.
2009-07-25 12:57:14 +00:00
Joel Sherrill
7467542e85 2009-07-24 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, configure.ac, sp40/Makefile.am, sp40/init.c,
	sp40/sp40.scn: Now verified to hit coverage cases.
	* sp40/sp40.doc: New file.
2009-07-25 01:39:45 +00:00
Joel Sherrill
96b8762610 2009-07-24 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp40/Makefile.am, sp40/init.c, sp40/sp40.scn: Attempt to write test
	to catch two remaining uncovered cases in rtems_io_register_driver.
	* sp40/system.h: Removed.
2009-07-25 01:31:07 +00:00
Joel Sherrill
eecb54552d 2009-07-24 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, configure.ac: Add new test to exercise odd case in
	rtems_iterate_over_all_threads.
	* sp41/.cvsignore, sp41/Makefile.am, sp41/init.c, sp41/sp41.doc,
	sp41/sp41.scn: New files.
2009-07-24 20:43:06 +00:00
Joel Sherrill
2c0d7929bc 2009-07-23 Joel Sherrill <joel.sherrill@OARcorp.com>
* sp36/strict_order_mut.c: Simple binary semaphores cannot have an
	inheritance protocol since there is no holder associated with them.
2009-07-23 19:05:11 +00:00
Joel Sherrill
d541ba8cc6 2009-07-23 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, configure.ac: Add new tests to exercise cases where a
	timer is scheduled from an ISR while it is being scheduled at the
	task level.
	* spintrcritical13/.cvsignore, spintrcritical13/Makefile.am,
	spintrcritical13/init.c, spintrcritical13/spintrcritical13.doc,
	spintrcritical13/spintrcritical13.scn, spintrcritical14/.cvsignore,
	spintrcritical14/Makefile.am, spintrcritical14/spintrcritical14.doc,
	spintrcritical14/spintrcritical14.scn: New files.
2009-07-23 18:54:23 +00:00
Joel Sherrill
75fed1b941 2009-07-23 Joel Sherrill <joel.sherrill@OARcorp.com>
* spintrcritical01/init.c, spintrcritical06/init.c,
	spintrcritical08/init.c, spintrcritical09/init.c: Perform some
	cleanup and make the tests more similar.
2009-07-23 18:04:53 +00:00
Joel Sherrill
4e4f06bbbe 2009-07-23 Joel Sherrill <joel.sherrill@OARcorp.com>
* spintrcritical06/init.c: Test now hits forward and reverse cases.
2009-07-23 16:12:53 +00:00
Joel Sherrill
2d730043c0 2009-07-22 Joel Sherrill <joel.sherrill@OARcorp.com>
* spintrcritical09/init.c, spintrcritical09/spintrcritical09.scn: Make
	test work for case that it is documented to handle.
2009-07-22 21:46:56 +00:00
Joel Sherrill
7fbe4fa1bf 2009-07-21 Joel Sherrill <joel.sherrill@OARcorp.com>
* spintrcritical10/.cvsignore, spintrcritical10/Makefile.am,
	spintrcritical10/init.c, spintrcritical10/spintrcritical10.doc,
	spintrcritical10/spintrcritical10.scn: New files.
2009-07-21 23:06:46 +00:00
Joel Sherrill
75a5abaf4a 2009-07-21 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, configure.ac, sp39/init.c, sp39/sp39.scn: Move
	unreliable third case in sp39 to spintrcritical10. New tests to hit
	other event synchronization critical sections.
	* spintrcritical11/.cvsignore, spintrcritical11/Makefile.am,
	spintrcritical11/init.c, spintrcritical11/spintrcritical11.doc,
	spintrcritical11/spintrcritical11.scn, spintrcritical12/.cvsignore,
	spintrcritical12/Makefile.am, spintrcritical12/spintrcritical12.doc,
	spintrcritical12/spintrcritical12.scn: New files.
2009-07-21 23:06:13 +00:00
Joel Sherrill
bd894e5447 2009-07-21 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, configure.ac: Add new test to exercise Debug Manager.
	* sp10/.cvsignore, sp10/Makefile.am, sp10/init.c, sp10/sp10.doc,
	sp10/sp10.scn: New files.
2009-07-21 19:32:30 +00:00
Joel Sherrill
99fbb6080c 2009-07-21 Joel Sherrill <joel.sherrill@OARcorp.com>
* spintrcritical06/init.c: Clean up.
	* spintrcritical09/init.c: Adjust clock tick so it works on erc32.
	* spintrcritical09/spintrcritical09.scn: Fill in.
2009-07-21 18:26:27 +00:00
Joel Sherrill
bbebcd2c0d 2009-07-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* spintrcritical06/init.c: Add comment to indicate test is not finished
	and known to not hit the case.
	* Makefile.am, configure.ac: Add a couple more interrupt critical
	section tests.
	* spintrcritical08/.cvsignore, spintrcritical08/Makefile.am,
	spintrcritical08/init.c, spintrcritical08/spintrcritical08.doc,
	spintrcritical08/spintrcritical08.scn, spintrcritical09/.cvsignore,
	spintrcritical09/Makefile.am, spintrcritical09/init.c,
	spintrcritical09/spintrcritical09.doc,
	spintrcritical09/spintrcritical09.scn: New files.
2009-07-21 15:16:57 +00:00
Joel Sherrill
ceb3cb3b6c 2009-07-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac, spintrcritical06/init.c: Add first attempt
	at hitting interrupt synchronization critical section in thread queue
	enqueue priority for reverse insertions.
	* spintrcritical07/.cvsignore, spintrcritical07/Makefile.am,
	spintrcritical07/spintrcritical07.doc,
	spintrcritical07/spintrcritical07.scn: New files.
2009-07-20 18:38:28 +00:00
Joel Sherrill
eecd655794 2009-07-20 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, configure.ac: Add test case for the
	_Thread_queue_Enqueue_priority interrupt critical section where the
	TCB we are using as a current pointer is removed from the thread
	queue when we flash interrupts while searching forward.
	* spintrcritical06/.cvsignore, spintrcritical06/Makefile.am,
	spintrcritical06/init.c, spintrcritical06/spintrcritical06.doc,
	spintrcritical06/spintrcritical06.scn: New files.
2009-07-20 14:49:25 +00:00
Joel Sherrill
260e09260a 2009-07-20 Joel Sherrill <joel.sherrill@OARcorp.com>
* spintrcritical_support/intrcritical.c,
	spintrcritical_support/intrcritical.h: Change prototype of delay
	method to indicate when counter is reset. This can be used to count
	how many iterations we are doing.
2009-07-20 14:48:14 +00:00
Joel Sherrill
f691e0a09f 2009-07-19 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac: Add sp60 to exercise case where a task is
	blocked on one period while another expires. Add sp61 which exercises
	the case where a call is made to rtems_shutdown_executive when the
	system is not up.
	* sp60/.cvsignore, sp60/Makefile.am, sp60/init.c, sp60/sp60.doc,
	sp60/sp60.scn, sp61/.cvsignore, sp61/Makefile.am, sp61/init.c,
	sp61/sp61.doc, sp61/sp61.scn: New files.
2009-07-20 01:05:33 +00:00
Joel Sherrill
f3ea48abbc *** empty log message *** 2009-07-20 01:02:17 +00:00