Commit Graph

3323 Commits

Author SHA1 Message Date
Joel Sherrill
adc2301723 psxtmthread02/init.c: Fix warnings 2013-11-30 16:06:07 -06:00
Daniel Ramirez
115e059131 fixed psxtmthread02 test, updated .csv to be in sync and added test .docs 2013-11-30 15:50:25 -06:00
Joel Sherrill
135e957616 psxtmtests_plan.csv: Replace comma with colon
This makes it easier for scripts to parse correctly.
2013-11-30 09:53:47 -06:00
Daniel Ramirez
7de5ef5f83 psxtmtests: Added in new psxtmbarrier04 test, release, preempt 2013-11-30 08:58:55 -06:00
Chirayu Desai
734f91825b psxtests: add documentation for psx05 2013-11-29 09:18:03 -06:00
Joel Sherrill
072fe30203 psxtmtests_plan.csv: Avoid comma in descriptions 2013-11-28 08:39:15 -06:00
Gedare Bloom
c625a80028 psxtmthread05: delete spurious .cvsignore file 2013-11-27 20:55:10 -05:00
Daniel Ramirez
e9a1c991fe psxtmtests: copy psxtmthread05 to psxtmthread06, fix psxtmthread05
The psxtmthread05 test was testing the functionality meant for
psxtmthread06. This patch copies the psxtmthread05 to psxtmthread06
and modifies psxtmthread05 to test the intended functionality.
2013-11-27 20:50:10 -05:00
Joel Sherrill
47efc01882 psxtmtests_plan.csv: Add explicit No status 2013-11-27 11:04:29 -06:00
Chirayu Desai
fa3f87884f Indicate that test psxtmthread05 has been implemented
* update psxtmtests_plan.csv to reflect that the test has been
  implemented.
* Test implemented in db08c3897f
2013-11-27 11:26:05 -05:00
Steven Kou
df97c7f878 psxtests: Add test document file to psx06. 2013-11-27 10:03:39 -05:00
Chirayu Desai
db08c3897f psxtmtests: Add psxtmthread05 for pthread_setschedparam
New test psxtmthread 05 uses two tasks and times lowering
the priority of one task plus the preemption and context switch
to the other task.
2013-11-27 09:54:57 -05:00
Steven Kou
ee4dc2fd4d psxtests: Add test document file to psx09. 2013-11-25 11:11:06 -05:00
Steven Kou
d1dbabd215 psxtests: Add test document file to psx08. 2013-11-25 09:49:36 -05:00
Annelies Odermann
27116f25ad psxtests: add psx01/psx01.doc 2013-11-22 05:43:53 -05:00
Sebastian Huber
4ea97d2449 score/rbtree: Remove "unprotected" from API 2013-11-21 12:58:46 +01:00
Sebastian Huber
833dd90335 score/rbtree: Delete protected operations
The user of the red-black tree container must now ensure that at most
one thread at once can access an instance.
2013-11-21 12:58:46 +01:00
Joel Sherrill
d0beb9bac4 Misc tests: Fix scn files and adjust output 2013-11-18 10:55:24 -06:00
Sebastian Huber
435f2c056b libtests/malloctest: Fix heap extend test case 2013-11-18 14:56:43 +01:00
Joel Sherrill
a136fb697d testsuites: Add missing .scn files 2013-11-15 11:55:44 -06:00
Joel Sherrill
892abd53f9 Rename imfs_fspathenval.scn to imfs_fspatheval.scn 2013-11-15 11:55:44 -06:00
Ralf Kirchner
a45b2ac992 fsdosfsname01: Improve test for duplicate names 2013-11-15 14:05:59 +01:00
Sebastian Huber
7eb6444d08 smptests/smp06: Delete test
This test referred to the first version of the simple SMP scheduler
which used the thread execution time for its scheduling decisions.  For
the current simple SMP scheduler, the execution time of threads is
irrelevant (like in the corresponding single-processor variant).
2013-11-11 10:29:36 +01:00
Ralf Kirchner
0098c5221d fsdosfsformat01: Add test for re-mount of a filesystem 2013-10-18 12:07:10 -04:00
Sebastian Huber
9e1d605979 libtests/flashdisk01: Include missing header file 2013-10-16 15:19:27 +02:00
WeiY
33e18a4f4e rename smpatomic08 to smpatomic01 2013-10-08 16:07:22 +02:00
WeiY
27a034ef13 delete smpatomic0-7 test cases 2013-10-08 16:07:21 +02:00
WeiY
fee154be37 add simple atomic test cases into smpatomic08 2013-10-08 16:06:59 +02:00
Sebastian Huber
0282e83d64 JFFS2: New tests 2013-09-19 13:16:07 +02:00
Sebastian Huber
d9998172a0 libtests/termios04: Avoid NULL pointer access 2013-09-17 13:58:53 +02:00
Sebastian Huber
390e987eb3 libblock: PR2145: Limit maximum read-ahead blocks
This helps to prevent stack overflows due to configuration errors.
2013-09-16 10:54:51 +02:00
Sebastian Huber
bdcf4102f7 fstests/mdosfs_fstime: Remove test
The FAT file system is not conformant with the POSIX requirements.
2013-09-16 10:54:51 +02:00
Sebastian Huber
d1c5c01f62 psxtests/psxfile01: Fix according to POSIX
ftruncate() and open() with O_TRUNC shall upon successful completion
mark for update the st_ctime and st_mtime fields of the file.

truncate() shall upon successful completion, if the file size is
changed, mark for update the st_ctime and st_mtime fields of the file.

The POSIX standard "The Open Group Base Specifications Issue 7", IEEE
Std 1003.1, 2013 Edition says nothing about the behaviour of truncate()
if the file size remains unchanged.

Future directions of the standard may mandate the behaviour specified in
ftruncate():

http://austingroupbugs.net/view.php?id=489
2013-09-13 17:07:15 +02:00
Sebastian Huber
736983f1cc fstests/fstime: Fix according to POSIX
ftruncate() and open() with O_TRUNC shall upon successful completion
mark for update the st_ctime and st_mtime fields of the file.

truncate() shall upon successful completion, if the file size is
changed, mark for update the st_ctime and st_mtime fields of the file.

The POSIX standard "The Open Group Base Specifications Issue 7", IEEE
Std 1003.1, 2013 Edition says nothing about the behaviour of truncate()
if the file size remains unchanged.

Future directions of the standard may mandate the behaviour specified in
ftruncate():

http://austingroupbugs.net/view.php?id=489
2013-09-13 16:47:55 +02:00
Sebastian Huber
2477a39357 fstests/fspermission: Fix resource leak 2013-09-13 16:47:55 +02:00
Sebastian Huber
4a8c334fb2 smptests/smpatomic08: Add initialization test case 2013-09-03 11:07:37 +02:00
Sebastian Huber
29f7d31782 score: Use unsigned long for atomic integers
Use unsigned long instead of uint_fast32_t since C11 provides only a
ATOMIC_LONG_LOCK_FREE macro constant.  This makes it also possible to
use properly typed integer literals like 123UL.  It is now clear which
compatible type should be used for the atomic integer.
2013-09-03 11:07:36 +02:00
Sebastian Huber
47b6fad012 smptests/smpatomic08: Avoid copy and paste 2013-09-01 15:18:11 +02:00
Sebastian Huber
7136d7f1af smptests/smpatomic08: Simplify or/and test case
Renamed and use common integer variables.
2013-09-01 15:17:02 +02:00
Sebastian Huber
d39ccd69f1 smptests/smpatomic08: Fix compare and exchange 2013-09-01 15:17:01 +02:00
WeiY
4238affc5f add atomic sub, and, or, compare_exchange test cases into smpatomic08 2013-09-01 15:17:01 +02:00
Sebastian Huber
bf30999cc6 smp: Add and use _Assert_Owner_of_giant()
Add and use _ISR_Disable_without_giant() and
_ISR_Enable_without_giant() if RTEMS_SMP is defined.

On single processor systems the ISR disable/enable was the big hammer
which ensured system-wide mutual exclusion.  On SMP configurations this
no longer works since other processors do not care about disabled
interrupts on this processor and continue to execute freely.

On SMP in addition to ISR disable/enable an SMP lock must be used.
Currently we have only the Giant lock so we can check easily that ISR
disable/enable is used only in the right context.
2013-08-30 11:16:28 +02:00
Sebastian Huber
1215fd4d94 sapi: SMP support for chains
Add ISR lock to chain control for proper SMP protection.  Replace
rtems_chain_extract() with rtems_chain_explicit_extract() and
rtems_chain_insert() with rtems_chain_explicit_insert() on SMP
configurations.  Use rtems_chain_explicit_extract() and
rtems_chain_explicit_insert() to provide SMP support.
2013-08-30 11:16:28 +02:00
Sebastian Huber
e127c4c9ea smptests/smpatomic08: Fix race conditions 2013-08-29 10:05:16 +02:00
Sebastian Huber
79d03e30bf smptests/smpatomic08: New test 2013-08-28 14:58:51 +02:00
Sebastian Huber
2bbcb644f9 smptests: Move ATOMIC conditional to top-level 2013-08-28 14:58:50 +02:00
Sebastian Huber
7d9fff6e28 posix: Add and use _POSIX_signals_Acquire()
Add and use _POSIX_signals_Release().  The post-switch handler is not
protected by disabled thread dispatching.  Use proper SMP lock for
signal management.
2013-08-27 12:51:46 +02:00
Sebastian Huber
ff0dcf2c45 sptests/spthreadq01: Add SMP support 2013-08-27 10:48:17 +02:00
Sebastian Huber
c955f99f6e sptests/spnsext01: Add SMP support 2013-08-27 10:48:17 +02:00
Sebastian Huber
23de794d15 score: Add and use CHAIN_INITIALIZER_ONE_NODE().
Add and use CHAIN_NODE_INITIALIZER_ONE_NODE_CHAIN(),
RTEMS_CHAIN_INITIALIZER_ONE_NODE() and
RTEMS_CHAIN_NODE_INITIALIZER_ONE_NODE_CHAIN().
2013-08-27 10:48:16 +02:00