Commit Graph

792 Commits

Author SHA1 Message Date
Sebastian Huber
ffb1a45e9c psxtests/psx07: Fix printf() statement
Close #2240.
2015-01-23 12:49:44 +01:00
Sebastian Huber
a0b1b5edb8 Delete CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
This define was superfluous, undocumented and used inconsistently.
2014-12-16 11:34:38 +01:00
Sebastian Huber
7bdb765a67 Add POSIX key value pairs to resource snapshot 2014-12-12 13:16:28 +01:00
Sebastian Huber
172e953147 posix: Delete key/value if value is set to NULL 2014-12-12 13:16:25 +01:00
Sebastian Huber
1207288022 Update bug report URL 2014-12-05 07:47:32 +01:00
Sebastian Huber
11925eef78 Delete or rename MIN/MAX macros and defines
Include <sys/param.h> if necessary to get the MIN()/MAX() macros.
2014-11-21 08:52:29 +01:00
Sebastian Huber
ffa71f1cd0 libcsupport: Implement getgroups() 2014-11-20 10:30:22 +01:00
Sebastian Huber
395e5d4d7a libcsupport: Use POSIX key for getgrent() 2014-11-20 10:30:22 +01:00
Sebastian Huber
002f351e15 libcsupport: Minimal /etc/passwd and /etc/group
Create a minimal /etc/passwd and /etc/group with user root and group
root only with no passwords.
2014-11-20 10:30:22 +01:00
Sebastian Huber
43633ae262 testsuites: Avoid clock driver 2014-10-14 12:12:32 +02:00
Sebastian Huber
a38ced2683 score: Rework global construction
Ensure that the global construction is performed in the context of the
first initialization thread.  On SMP this was not guaranteed in the
previous implementation.
2014-10-13 14:30:22 +02:00
Sebastian Huber
b9f952254b posix: Add auto initializaton for rwlock 2014-10-08 11:26:27 +02:00
Sebastian Huber
b5f9ad2952 psxtests/psxonce01: Use test extension 2014-09-10 07:12:55 +02:00
Sebastian Huber
8028089000 tests: Rework interrupt critical tests
This avoids test durations of more than one hour on fast targets, since
fast targets can count a lot during one clock tick period, so the minor
loop iteration count was quite high.  Estimate now the test body
duration to iterate only through the interesting time window.

Add and use interrupt_critical_section_test().
2014-09-10 07:12:55 +02:00
Joel Sherrill
875fff0ae3 Add _TOD_Adjust to SCORE TOD Handler.
This lays the proper structure for doing future work on
time adjustment algorithms. Any TOD adjustments should be
requested at the API level and performed at the SCORE level.

Additionally updated a test.
2014-07-23 16:53:24 -05:00
Chris Johns
1461b648b7 testsuite: Add a per BSP test check for tests not to build.
Provide a file per BSP to list tests that do not build for a BSP. This change
removes the BSP_SMALL_MEMORY hack from the code. That hack was a
mistake.

Provide configuration files for each BSP with tests that cannot build.
2014-05-05 10:24:41 +10:00
Sebastian Huber
fef4293834 psxtests/psxkey02: Test for proper error case 2014-04-07 16:48:02 +02:00
Joel Sherrill
d507c03731 Disable per task variables when SMP is enabled
Per task variables are inherently unsafe in SMP systems. This
patch disables them from the build and adds warnings in the
appropriate documentation and configuration sections.
2014-04-04 14:27:27 -05:00
Sebastian Huber
1b1be254e7 score: Thread life cycle re-implementation
The thread deletion is now supported on SMP.

This change fixes the following PRs:

PR1814: SMP race condition between stack free and dispatch

PR2035: psxcancel reveals NULL pointer access in _Thread_queue_Extract()

The POSIX cleanup handler are now called in the right context (should be
called in the context of the terminating thread).

http://pubs.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_09.html

Add a user extension the reflects a thread termination event.  This is
used to reclaim the Newlib reentrancy structure (may use file
operations), the POSIX cleanup handlers and the POSIX key destructors.
2014-03-31 08:29:43 +02:00
Sebastian Huber
391ad3ee4f score: Fix thread restart extensions context
Run the thread restart extensions in the context of the restarted
thread.  Run them with thread dispatching enabled.
2014-03-31 08:29:43 +02:00
Sebastian Huber
ecd8c8add2 tests/fatal: Fix test names 2014-03-31 08:29:42 +02:00
Sebastian Huber
d98217ccd1 psxtests/psxconfig01: Fix for POSIX keys config 2014-03-31 08:29:42 +02:00
Christian Mauderer
5c0c0cf2a6 privateenv: Use POSIX keys instead of task variables. 2014-03-27 14:50:36 +01:00
Sebastian Huber
8c26e79867 tests: Produce proper begin/end messages 2014-03-25 16:46:37 +01:00
Sebastian Huber
698c2e504a tests/psxtests: Use <rtems/test.h> 2014-03-25 08:06:16 +01:00
Sebastian Huber
2272905333 tests: Use rtems_status_text() 2014-03-25 08:06:06 +01:00
Christian Mauderer
01f2337432 posix: Prevent pthread_setspecific from returning EAGAIN.
The man-page for pthread_setspecific does not define the EAGAIN return value.
Further without this patch it was not possible to set keys that have been
already set a new value.

Add test for setting a new value to a already set key.
2014-03-24 08:31:49 +01:00
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