Commit Graph

765 Commits

Author SHA1 Message Date
Chris Johns
c49985691f Change all references of rtems.com to rtems.org. 2014-03-21 08:10:47 +11:00
Christian Mauderer
4484112216 psxonce01: Add call counter to check if init function has been called. 2014-03-19 08:34:28 +01:00
Christian Mauderer
6592cabade psxtests: move pthread_once tests into an extra test. 2014-03-19 08:34:27 +01:00
Sebastian Huber
51f823c932 posix: Use interal mutex for once implementation
Enable pthread_once() for all configurations.  The pthread_once()
function is one means to initialize POSIX keys.  Another use case is the
C++ support.
2014-03-19 08:34:26 +01:00
Sebastian Huber
0dd025ccb9 psxtests/psxkey07: Do not allocate task IDs 2014-03-12 07:54:57 +01:00
Sebastian Huber
92d261c288 psxtests/psxkey07: Limit workspace size
This avoids large test execution times on targets with a big RAM.
2014-03-12 07:54:57 +01:00
Sebastian Huber
fca27b7272 psxtests/psxkey07: Account for RTEMS_TOO_MANY 2014-03-12 07:54:57 +01:00
Sebastian Huber
0a64eba9b9 psxtests/psxkey08: Limit workspace size
This avoids large test execution times on targets with a big RAM.
2014-03-12 07:54:57 +01:00
Sebastian Huber
610815417d psxtests/psxkey08: Do not allocate task IDs
We have a unified work area.  So depending on the memory layout the

    task_id_p = malloc( sizeof( rtems_id ) );
    rtems_test_assert( task_id_p );

or the

    sc = rtems_task_create(
      rtems_build_name('T','A',created_task_count, ' '),
      1,
      RTEMS_MINIMUM_STACK_SIZE,
      RTEMS_DEFAULT_MODES,
      RTEMS_DEFAULT_ATTRIBUTES,
      task_id_p
    );
    rtems_test_assert(
      (sc == RTEMS_UNSATISFIED) ||
      (sc == RTEMS_TOO_MANY) ||
      (sc == RTEMS_SUCCESSFUL)
    );

may fail.  If we are unlucky then we hit the first case and the test
fails.
2014-03-12 07:54:56 +01:00
Joel Sherrill
e6c87f7872 POSIX keys now enabled in all configurations.
Formerly POSIX keys were only enabled when POSIX threads
were enabled. Because they are a truly safe alternative
to per-task variables in an SMP system, they are being
enabled in all configurations.
2014-03-07 13:21:11 -06:00
Jennifer Averett
5c3323492e Remove trailing whitespace in previous patches 2014-03-07 09:15:15 -06:00
Jennifer Averett
c315dbf2f7 psxtests: Added test for pthread_getattr_np(). 2014-03-07 09:13:08 -06:00
Jennifer Averett
f38060b6dd psxtests: Correct bug in check of affinity support in newlib. 2014-02-17 12:17:26 -06:00
Sebastian Huber
bab16de267 score: Change debug helper functions
Rename rtems_internal_error_description() to
rtems_internal_error_text().  Rename rtems_fatal_source_description() to
rtems_fatal_source_text().  Rename rtems_status_code_description() to
rtems_status_text().  Remove previous implementation of
rtems_status_text().
2014-02-12 09:18:00 +01:00
Chris Johns
6e6fd513a7 testsuite/psx13: Add linefeed to end of test message.
The lack of a line feed means the output from the test runs into
the MI protocol on GDB as the broken simulator output currently
is not passing through gdb's MI protocol layer.
2014-01-19 10:42:17 +11:00
Joel Sherrill
bc55e4fa52 psximfs02: Clean up output 2014-01-07 18:02:46 -06:00
Shaily Sangwan
524e78570a psxtime: Added doc file. 2014-01-03 13:12:43 -06:00
Mandar Juvekar
12f81c09ec pskey09, sp17: documentation cleanup. 2014-01-03 08:25:14 -06:00
Rishi Sharma
b23ef87403 psx03: Add doc file 2013-12-26 10:10:52 -06:00
Mandar Juvekar
c51645f339 psxtests/psx14: Add doc file 2013-12-24 10:15:43 -05:00
Mandar Juvekar
1464599482 psxtests/psxfatal01: add doc file 2013-12-20 11:37:59 -05:00
Sebastian Huber
c1d8ee4cdc libcsupport: Accept NULL for zero-length entries 2013-12-20 10:31:53 +01:00
Sebastian Huber
95a57280eb libcsupport: Add and use rtems_libio_iovec_eval() 2013-12-20 10:31:53 +01:00
Anukul Sangwan
540a63536c psxtests: add psxcleanup/psxcleanup.doc 2013-12-18 15:01:20 -05:00
Joel Sherrill
7318449947 psxtests/configure.ac: Probe for SMP affinity methods 2013-12-13 08:35:52 -06:00
Joel Sherrill
0b59942156 psxsignal06: Fix bug where mutex not locked and add EPERM error check
This test formerly had a bug in that it attempted to wait on a
    condition variable with a Mutex that was not locked. This is
    undefined by POSIX. But a recent change to match GNU/Linux behavior
    resulted in finding a bug in the test.
2013-12-10 19:48:28 -06:00
Joel Sherrill
74c15fe696 psxtmcond01: Fix bug where mutex not locked and add EPERM error check
This test formerly had a bug in that it attempted to wait on a
condition variable with a Mutex that was not locked. This is
undefined by POSIX. But a recent change to match GNU/Linux behavior
resulted in finding a bug in the test.
2013-12-10 17:56:22 -06:00
Sebastian Huber
927a0a1f99 posix: Use cleanup contexts on the stack
Provide support for latest Newlib <pthread.h> change.  The cleanup
contexts are stored on the thread stack.  This is conformant with the
POSIX requirements for the pthread_cleanup_push() and
pthread_cleanup_pop() statement pair.

Passing an invalid pointer as the routine to pthread_cleanup_push() is
now a usage error and the behaviour is undefined.
2013-12-02 09:24:51 +01:00
Annelies Odermann
95d7ac7735 psx07.doc: New file 2013-11-30 18:41:11 -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
Chirayu Desai
734f91825b psxtests: add documentation for psx05 2013-11-29 09:18:03 -06:00
Steven Kou
df97c7f878 psxtests: Add test document file to psx06. 2013-11-27 10:03:39 -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
Joel Sherrill
d0beb9bac4 Misc tests: Fix scn files and adjust output 2013-11-18 10:55:24 -06: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
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
396f6442e1 psxtests/psxfatal0[12]: Update due to API changes 2013-08-23 12:54:03 +02:00
Chris Johns
6e4c01e3a2 posix: Update to the pthread_once changes.
Implement the reeview changes.
Add a POSIX Fatal error domain.
Fix confdefs.h to correctly handle the internal POSIX mutexes.
2013-08-23 14:56:36 +10:00
Sebastian Huber
ae75429ca1 PR766: Delete __RTEMS_VIOLATE_KERNEL_VISIBILITY__ 2013-08-08 14:11:22 +02:00
Sebastian Huber
9ff70db89f psxtests/psx14: Include missing header file 2013-08-06 15:47:56 +02:00
Zhongwei Yao
b5c906429f Unlimited objects support for POSIX keys
This patch enables unlimited model in POSIX key manger and have a decent
runtime on POSIX key searching, adding and deleting operations.  Memory
overhead is lower than current implementation when the size of key and key
value becomes big.
2013-08-06 14:11:38 +02:00
Sebastian Huber
f031df0e63 score: Rename tod.h to todimpl.h 2013-08-01 16:45:45 +02:00
Sebastian Huber
1e51fa5f4d score: Add and use _Thread_Update_cpu_time_used()
Fix _times().
2013-08-01 16:45:44 +02:00
Sebastian Huber
88c74ab115 score: Merge tod implementation into one file
Delete TOD_MICROSECONDS_PER_SECOND, TOD_MICROSECONDS_TO_TICKS() and
TOD_MILLISECONDS_TO_TICKS().
2013-07-26 11:55:47 +02:00
Sebastian Huber
a2e3f33f39 score: Create object implementation header
Move implementation specific parts of object.h and object.inl into new
header file objectimpl.h.  The object.h contains now only the
application visible API.
2013-07-26 11:55:47 +02:00
Sebastian Huber
218286bc05 score: Create stack implementation header
Move implementation specific parts of stack.h and stack.inl into new
header file stackimpl.h.  The stack.h contains now only the application
visible API.
2013-07-23 17:19:08 +02:00
Sebastian Huber
f17c779828 posix: Create timer implementation header
Move implementation specific parts of timer.h and timer.inl into new
header file timerimpl.h.  The timer.h contains now only the application
visible API.
2013-07-22 16:57:24 +02:00
Sebastian Huber
0c5317d16c posix: Create pthread implementation header
Move implementation specific parts of pthread.h and pthread.inl into new
header file pthreadimpl.h.  The pthread.h contains now only the
application visible API.
2013-07-22 16:57:23 +02:00