summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-02-19testsuites/dl11: Test TLS on a secondary threadKinsey Moore2-15/+59
This adds a pthread that runs the test as well to increase test coverage. The original test would have passed if all threads returned the address of the Init task's errno since no additional threads or tasks were checked.
2024-01-10libio: Clean up usage of rtems_termios_device_modeKinsey Moore3-3/+3
This cleans up outputUsesInterrupts usage with rtems_termios_device_mode enum values. The outputUsesInterrupts member was typed as an int, named as if it were a boolean value, and used as if it were a rtems_termios_device_mode enum. In this patch, values assigned to outputUsesInterrupts have been converted to the corresponding rtems_termios_device_mode enum value, conversions from deviceOutputUsesInterrupts have been made explicit, and uses of rtems_termios_device_mode enum values with deviceOutputUsesInterrupts have been converted to booleans.
2023-09-26tests: Add header for RTEMS test printerSebastian Huber29-29/+27
The <rtems/test-info.h> header file is required for every RTEMS test program. Move the RTEMS test printer support to a dedicated header file <rtems/test-printer.h>. This removes an unnecessary dependency to the RTEMS printer support in <rtems/test-info.h>. Tests using the RTEMS Testing Framework no longer depend on the <rtems/printer.h>.
2023-08-28cpukit/libdl: Correctly account for section alignmentsChris Johns1-0/+1
- Add the section alignment to the size as the allocator may not provide correctly aligned memory - Only include symbols in the section when locating symbols. The powerpc was incorrectly adding SDATA BSS symbols to the BSS offset overrunning the section Closes #4950
2023-08-27libdl: Realloc text memory if there are trampolinesChris Johns1-2/+14
- Add resize to the allocator interface - Rework the trampoline variables in the obj struct to make better sense of what is happening Closes #4944
2023-08-21libdl: Add support to import base image TLS symbolsChris Johns1-2/+25
This change requires an rtems-tools update for symbol generation. Working architectures: - aarch64 - arm - powerpc - sparc No newlib TLS support but checked: - i386 - m69k Updates #4920
2023-08-11Add the Regulator Interface and testJoel Sherrill3-0/+1436
Updates #4924. The Regulator is an application support class which is used to deal with the scenario where there is a bursty input source which needs to be metered out to a destination sink. The maximum size of bursts needs to be known and the delivery method must be configured to deliver messages at a rate that allows the traffic to not overflow.
2023-07-27Revert "cpukit/dev/can: Added CAN support"Gedare Bloom2-359/+0
This reverts commit cd91b37dce728b372f164355719a4e601e12e7b3. Closes #4803.
2023-06-10testsuites/flashdev01: Use correct page_size typeKinsey Moore1-1/+1
The page size ioctl requires an int pointer to retrieve the page size. The test currently uses a size_t which mostly works fine for systems where size_t and int are the same size, but can leave junk data in the upper bits when they differ in size causing an assert in the test to fail in some cases. This updates the variable to the correct type.
2023-05-20Update company nameSebastian Huber74-74/+74
The embedded brains GmbH & Co. KG is the legal successor of embedded brains GmbH.
2023-05-16testsuites/libtests: Add test for flashdevAaron Nyholm5-0/+513
2023-01-20testsuites/libtest/dl11: Add DL test for TLSKinsey Moore6-0/+370
This adds a test verifying basic TLS functionality in loadable modules now that at least one architecture supports it.
2022-10-30cpukit/dev/can: Added CAN supportPrashanth S2-0/+359
2022-10-14stackchk01: Check CPU_STACK_MINIMUM_SIZESebastian Huber2-9/+33
Ensure that the CPU_STACK_MINIMUM_SIZE is suffiently larger than the stack usage in simple applications.
2022-09-08libtests/sha: Add tests for SHA512-256Sebastian Huber1-0/+49
2022-09-08libtests/sha: Add tests for SHA512-224Sebastian Huber1-0/+50
2022-09-08libtests/sha: Add tests for SHA384Sebastian Huber1-0/+58
2022-09-08libtests/sha: Add tests for SHA224Sebastian Huber1-4/+54
2022-08-31libtest: Fix warnings without a pragmaSebastian Huber1-5/+5
It seems that recent GCC versions expect that functions with a "const type *" parameter will read from the referenced location. Update #4662.
2022-08-19ttest01/test-checks.c: Initialize variablesRyan Long1-5/+5
These uninitialized variables were causing warnings to be generated. Updates #4662
2022-08-19malloctest/init.c: Added pragmas to address gcc 12 warningsRyan Long1-3/+38
Updates #4662
2022-08-19dl09/dl-load.c: Fix gcc 12 warningRyan Long1-1/+1
Changed format of size_t variable being printed. Updates #4662
2022-08-05testsuite: Fix warningsChris Johns1-2/+3
Updates #4662
2022-07-29libtests/dl*: Bump up the size of CONFIGURE_INIT_TASK_STACK_SIZERyan Long10-10/+10
Updates #4682
2022-07-21Support _REENT_THREAD_LOCAL Newlib configurationMatt Joyce1-4/+7
In case the Newlib _REENT_THREAD_LOCAL configuration option is enabled, the struct _reent is not defined (there is only a forward declaration in <sys/reent.h>). Instead, the usual members of struct _reent are available as dedicatd thread-local storage objects. Update #4560.
2022-07-04libtests/crypt01: Avoid stack overflowsSebastian Huber1-1/+5
The SHA512 functions may use huge amounts of stack space if compiled without optimization.
2022-06-21testsuite: Fix gcc 12 warningsChris Johns4-4/+5
2022-06-09Newlib01: Add tests for rand() and lrand48()Matt Joyce2-0/+53
Check that the state of rand() and lrand48() is thread-specific, that they are properly initialized, and return the expected sequence of pseudo-random numbers for default seed values.
2022-06-09testsuite/libtests: Add exit03 to test exit() with C++Chris Johns4-0/+199
Updates #4661
2022-04-28termios06: Fix warningSebastian Huber1-2/+2
Update #4493.
2022-04-28heap: Fix heap statistics with protection enabledSebastian Huber1-0/+4
Close #4644.
2022-04-27libtests/dl06: Manually adding file headers and licenses.Ryan Long2-0/+70
These files had no header, copyright, or license. Based on git history, added appropriate copyright and license.
2022-04-27libtests: Adding file headers and licensesRyan Long5-0/+175
These files had no file header, copyright, or license. Based on git history, added appropriate copyrights and licenses.
2022-04-12testsuites/libtests/*/*.dts. stackchk02.doc: Change license to BSD-2Joel Sherrill3-9/+66
Updates #3053.
2022-04-12testsuites/libtests/[m-z]*: Change license to BSD-2Joel Sherrill27-81/+594
Updates #3053.
2022-04-12testsuites/libtests/[a-l]*: Change license to BSD-2Joel Sherrill50-150/+1100
Updates #3053.
2022-04-07testsuites/libtests/[p-z]*: Change license to BSD-2Joel Sherrill45-135/+990
Updates #3053.
2022-04-07testsuites/libtests/[d-o]*: Change license to BSD-2Joel Sherrill39-117/+858
Updates #3053.
2022-04-07testsuites/libtests/dl*: Change license to BSD-2Joel Sherrill81-243/+1782
Updates #3053.
2022-04-07testsuites/libtests/[a-c]*: Change license to BSD-2Joel Sherrill24-72/+528
Updates #3053.
2022-03-31newlib01: Added tests for exit proceduresMatt Joyce2-23/+100
Added tests for exit procedures to ensure proper resource cleanup. The test now checks cleanup for files assigned to stdio streams and non-stdio streams.
2022-03-24testsuites/: Update Eric Norum contact info and normalize file headersJoel Sherrill2-15/+6
2022-03-24newlib01: Adjust variable nameSebastian Huber1-4/+4
2022-03-24newlib01: Check exit processing for file objectsMatt Joyce1-16/+134
2022-03-10testsuites: Manual file header clean upChristian Mauderer1-6/+0
Updates #4625.
2022-03-10bsps/testsuites/: Scripted embedded brains header file clean upJoel Sherrill38-224/+2
Updates #4625.
2022-03-10testsuites/.../*doc: Manual cleanup of embedded brains File HeadersJoel Sherrill8-48/+8
There were not a lot of these and they did not match the patterns of the C. Updates #4625.
2022-02-16newlib01: Edit asserts to check initializationMatt Joyce1-3/+3
Edit assert statements in worker thread to check initialization against the __cleanup member of struct _reent instead of __sdidinit. This will allow the removal of sdidinit in a follow up Newlib patch.
2022-01-27cpukit: Prevent error with disabled stack checkerKinsey Moore3-0/+90
When the stack checker is not enabled, the stack checker reporting function can still be called. This prevents that call from performing a null memory access in trying to find the high water mark if the stack checker was never initialized. This also introduces a test to ensure this call does not cause a crash. Closes #4588
2022-01-27Remove obsolete rtems_gxx_*() implementationSebastian Huber3-296/+0
GCC versions prior to 6.1 used a RTEMS thread model based on rtems_gxx_*() functions. GCC version 6.1 or later uses the self-contained synchronization objects of Newlib <sys/lock.h> for the RTEMS thread model. Remove the obsolete implementation. Close #3143.