Commit Graph

1119 Commits

Author SHA1 Message Date
Sebastian Huber
bcef89f236 Update company name
The embedded brains GmbH & Co. KG is the legal successor of embedded
brains GmbH.
2023-05-20 11:05:26 +02:00
Sebastian Huber
46f08961a2 psxrwlock01: Use an initilized lock for tests
Close #4738.
2022-10-07 07:14:51 +02:00
Joel Sherrill
dbba943044 pthread_atfork(): Change to behavior from FACE Technical Standard
Closes #4713.
2022-09-06 17:09:11 -05:00
Ryan Long
f045b9ddd8 psxkey07/init.c: Add pragma for gcc 12 warning
Updates #4662
2022-08-19 15:34:47 -05:00
Ryan Long
f60f349d86 psxclock/init.c: Change print format for warning
Updates #4662
2022-08-19 15:34:47 -05:00
Joel Sherrill
996d18c212 psxtimer_face01: Improve coverage and documentation
Updates #4691.
2022-08-11 13:10:11 -05:00
Joel Sherrill
b6e00691ff psxtimer0[12]/psxtimer.c: Reformat file header. 2022-08-10 14:15:46 -05:00
Joel Sherrill
4b04589b09 Add support for CONFIGURE_POSIX_TIMERS_FACE_BEHAVIOR
This adds the configure option CONFIGURE_POSIX_TIMERS_FACE_BEHAVIOR
which allows the application to choose whether to have the POSIX
timer_create() function follow the behavior defined by POSIX or
the FACE Technical Standard.

Updates #4691.
2022-08-10 14:15:46 -05:00
Chris Johns
1a883b9b55 testsuite/psxclock: Check setting realtime clock does not effect sleeping tasks
Closes #4690
2022-08-05 07:53:10 +10:00
Sebastian Huber
8a864bc62c score: Use PTHREAD_CANCELED for _Thread_Cancel()
The rtems_task_delete() directive is basically just a combined pthread_cancel()
and pthread_join().  In addition, it removes the PTHREAD_DETACHED state.  The
exit value returned by pthread_join() of threads cancelled by
rtems_task_delete() should reflect this by getting a PTHREAD_CANCELED value
instead of NULL which could be a normal exit value.

Close #4680.
2022-07-28 07:53:04 +02:00
Sebastian Huber
31036f1dc8 score: Use priority inheritance for thread join
Threads may join the thread termination of another thread using the
pthread_join() or rtems_task_delete() directives.  The thread cancel operation
used a special case priority boosting mechanism implemented by
_Thread_Raise_real_priority().  The problem was that this approach

* is not transitive,

* does not account for priority adjustments of the calling task
  while waiting for the join,

* does not support clustered scheduling, and

* does not detect deadlocks.

All these problems are fixed by using a priority inheritance thread queue for
the join operation.

Close #4679.
2022-07-28 07:52:59 +02:00
Sebastian Huber
e1fdf975ac psxconfig01: Increase region area
This fixes a test failure on 64-bit systems with RTEMS_DEBUG enabled.
2022-07-27 10:03:54 +02:00
Chris Johns
6b2c5b5da1 testsuite: Fix gcc 12 warnings 2022-06-21 10:21:13 +10:00
Ryan Long
49a110718f psxtests: Adding file headers and licenses
These files had no file header, copyright, or license. Based on git
history, added appropriate copyrights and licenses.
2022-04-27 15:19:24 -05:00
Joel Sherrill
3f5d8c9c56 testsuites/psxtests/psxhdrs/unistd/*: Change license to BSD-2
Updates #3053.
2022-04-12 13:35:39 -05:00
Joel Sherrill
88b6293a63 testsuites/psxtests/psxhdrs/time/*: Change license to BSD-2
Updates #3053.
2022-04-12 13:35:39 -05:00
Joel Sherrill
15db02f6cc testsuites/psxtests/psxhdrs/sys/socket/*: Change license to BSD-2
Updates #3053.
2022-04-12 13:35:39 -05:00
Joel Sherrill
e1448e9790 testsuites/psxtests/psxhdrs/sys/mman/*: Change license to BSD-2
Updates #3053.
2022-04-12 13:35:39 -05:00
Joel Sherrill
7f78f064fb testsuites/psxtests/psxhdrs/signal*: Change license to BSD-2
Updates #3053.
2022-04-12 13:35:39 -05:00
Joel Sherrill
7f209b9841 testsuites/psxtests/psxhdrs/sched/*: Change license to BSD-2
Updates #3053.
2022-04-12 13:35:39 -05:00
Joel Sherrill
9e6b2a9c83 testsuites/psxtests/psxhdrs/pthread/*: Change license to BSD-2
Updates #3053.
2022-04-12 13:35:39 -05:00
Joel Sherrill
ab9faf9a6f testsuites/psxtests/psxhdrs/devctl/*: Change license to BSD-2
Updates #3053.
2022-04-12 13:35:39 -05:00
Joel Sherrill
ecdac5988a testsuites/psxtests/include: Change license to BSD-2
Updates #3053.
2022-04-12 13:35:39 -05:00
Joel Sherrill
5594854647 testsuites/psxtests/psx[n-z]*: Change license to BSD-2
Updates #3053.
2022-04-12 13:35:39 -05:00
Joel Sherrill
9e07bccac2 testsuites/psxtests/psx[g-m1]*: Change license to BSD-2
Updates #3053.
2022-04-12 13:35:39 -05:00
Joel Sherrill
ede291588a testsuites/psxtests/psx[a-f]*: Change license to BSD-2
Updates #3053.
2022-04-12 13:35:39 -05:00
Joel Sherrill
a3610bb924 testsuites/psxtests/psx[01]*: Change license to BSD-2
Updates #3053.
2022-04-12 13:35:39 -05:00
Christian Mauderer
43119193ef imfs: Fix index underrun when extending empty file
Currently the following sequence causes a endless loop when extending an
IMFS file:

- Create a file with zero length and close it.
- Make sure nearly no allocatable memory is left.
- Open the file and write enough data into it that more than the
  remaining memory will be used.

In that case when extending the IMFS file, the file currently need zero
blocks. If allocating enough new blocks fails, the already allocated new
blocks will be freed again.

The comparison of block>=old_blocks that has been used prior to this
patch compared two unsigned numbers. If old_blocks was zero, the
comparison of these two numbers always evaluated to true.

This patch frees the last block in a separate step to avoid this
problem.

Fixes #4639
2022-04-07 10:37:23 +02:00
Joel Sherrill
bbe71c611b bsps/testsuites/: Scripted embedded brains header file clean up
Updates #4625.
2022-03-10 08:43:50 +01:00
Sebastian Huber
8f1e8f8f26 kern_ntptime.c: Port to RTEMS
Remove previous adjtime() implementation.

Update #2348.
2022-02-21 14:16:41 +01:00
Kinsey Moore
c5986a5520 testsuite: Add machine exception signal map test
Add a test to verify that mapping of machine exceptions to POSIX signals
operates properly when the application requests it.
2021-10-29 12:40:56 -05:00
Sebastian Huber
d61fbeda59 score: _Thread_queue_Surrender_priority_ceiling()
Do not use a direct thread dispatch in
_Thread_queue_Surrender_priority_ceiling() since it may be used in condition
variables using POSIX mutexes.

Close #4526.
2021-10-11 13:22:12 +02:00
Sebastian Huber
db8f598d56 build: Remove old build system
Close #3250.
Close #4081.
2021-09-21 07:39:09 +02:00
Ryan Long
3951d4da6f pxcdevctl: Adjust for standard
psxdevctl is supposed to return the value in errno. Before, it was
returning -1 and setting errno. Changed the tests to reflect these
changes. Added code from RRADE's posix_devctl.c.

Closes #4506
2021-09-20 13:31:25 -05:00
Sebastian Huber
6d2becb78d score: Limit the CLOCK_REALTIME setting
Limit the CLOCK_REALTIME setting to ensure that the CLOCK_REALTIME is defined
for a system uptime of at least 114 years.
2021-09-06 12:22:44 +02:00
Sebastian Huber
b0f13f3778 psxtests/psxconfstr: Fix test case
Update #3373.
2021-08-30 19:32:18 +02:00
Eshan dhawan
574cd83b5d confstr() support for RTEMS
Closes #3373

confstr() style update

Signed-off-by: Eshan Dhawan <eshandhawan51@gmail.com>
2021-08-18 09:18:56 -05:00
Zacchaeus Leung
8df57649b0 Test needed for timer_create with CLOCK_MONOTONC
the timer_create() method can use CLOCK_MONOTONIC
but there was  no test for this.
Also it implements the functionality to
create a CLOCK_MONOTONIC timer and gettime() .
Closes #3888
2021-08-11 11:47:11 -05:00
Joel Sherrill
6199de889d Turn off executable permissions for a number of source files
Cloning under Cygwin turned off executable permission on these
files. This shows them as modified even though they have not
explicitly been touched. Executable permission should not have
been on for these files so this is just a minor clean up.
2021-08-09 10:08:17 -05:00
Ryan Long
f83676d91f sysconf: Remove sysconf(515)
GCC originally needed this 20 years ago. No longer needed, so it
is being removed.

Closes #4391
2021-06-09 11:52:24 -05:00
Ryan Long
6171a88d9c psx13: Added tests for utimensat() and futimens()
Improved tests for utime() and utimes() and update license.

Close #4399
2021-05-28 14:27:39 -05:00
Sebastian Huber
29187be532 posix: Allow pthread_cancel() from within ISRs
Close #4413.
2021-05-26 13:40:24 +02:00
Stephen Clark
e5590a3ea1 psxtests: Fix math function build warnings
Added conditionals to ensure that long double function tests were only
built when newlib has long double math functions.
2021-05-05 09:45:56 -05:00
Ryan Long
fe3e05ffca psx13: Reworked and relicensed
Changed the way the tests were structured, added rtems_test_assert()'s,
updated psx13.scn and the license.

Update #3899
2021-04-28 10:01:04 -05:00
Sebastian Huber
e0aba8cb9e score: Fix task stack initialization
Do not adjust the stack area begin address since this may confuse the
stack allocator and result in failed stack frees.

Account for the alignment overhead in the stack space size estimate.

Check that the stack size is in the expected interval.
2021-03-27 18:05:05 +01:00
Eshan dhawan
a26a326e55 Test suite for FTW.H methods
Signed-off-by: Eshan Dhawan <eshandhawan51@gmail.com>
2021-03-11 11:40:13 -06:00
Sebastian Huber
13bab346c5 score: Return a status in _Objects_Set_name() 2020-12-03 07:12:12 +01:00
Frank Kühndel
4763ef8d9b psxndbm01 - Fixing string truncation warning
This fixes the following compiler warning:

testsuites/psxtests/psxndbm01/init.c:221:3: warning: 'strncpy' output truncated
before terminating nul copying 5 bytes from a string of the same length
  221 |   strncpy( test_strings, "Hello", 5 );
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

In addition, the comments from Sebastian Huber on an old version of
such a patch have been taken into account:

1) The use of `sizeof()` in `key.dsize = sizeof( test_strings );` is wrong.

2) There is no need to allocate the string. One can simply use a string
   constant.

(See https://lists.rtems.org/pipermail/devel/2020-August/061418.html)
2020-10-12 08:43:32 +02:00
Sebastian Huber
97e9728306 rtems: Add RTEMS_PARTITION_ALIGNMENT
Update #4105.
2020-10-07 08:10:52 +02:00
Aschref Ben Thabet
65e027c9ed psxkey01: Fix configuration
Key_ID array must have the right size, it shall have a value greater
than zero.
Note: In Standard C and C++, zero-size array is not
allowed..
2020-08-20 07:44:33 +02:00