summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* testsuites/dl11: Test TLS on a secondary threadKinsey Moore2024-02-192-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.
* libio: Clean up usage of rtems_termios_device_modeKinsey Moore2024-01-103-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.
* tests: Add header for RTEMS test printerSebastian Huber2023-09-2629-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>.
* cpukit/libdl: Correctly account for section alignmentsChris Johns2023-08-281-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
* libdl: Realloc text memory if there are trampolinesChris Johns2023-08-271-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
* libdl: Add support to import base image TLS symbolsChris Johns2023-08-211-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
* Add the Regulator Interface and testJoel Sherrill2023-08-113-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.
* Revert "cpukit/dev/can: Added CAN support"Gedare Bloom2023-07-272-359/+0
| | | | | | This reverts commit cd91b37dce728b372f164355719a4e601e12e7b3. Closes #4803.
* testsuites/flashdev01: Use correct page_size typeKinsey Moore2023-06-101-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.
* Update company nameSebastian Huber2023-05-2074-74/+74
| | | | | The embedded brains GmbH & Co. KG is the legal successor of embedded brains GmbH.
* testsuites/libtests: Add test for flashdevAaron Nyholm2023-05-165-0/+513
|
* testsuites/libtest/dl11: Add DL test for TLSKinsey Moore2023-01-206-0/+370
| | | | | This adds a test verifying basic TLS functionality in loadable modules now that at least one architecture supports it.
* cpukit/dev/can: Added CAN supportPrashanth S2022-10-302-0/+359
|
* stackchk01: Check CPU_STACK_MINIMUM_SIZESebastian Huber2022-10-142-9/+33
| | | | | Ensure that the CPU_STACK_MINIMUM_SIZE is suffiently larger than the stack usage in simple applications.
* libtests/sha: Add tests for SHA512-256Sebastian Huber2022-09-081-0/+49
|
* libtests/sha: Add tests for SHA512-224Sebastian Huber2022-09-081-0/+50
|
* libtests/sha: Add tests for SHA384Sebastian Huber2022-09-081-0/+58
|
* libtests/sha: Add tests for SHA224Sebastian Huber2022-09-081-4/+54
|
* libtest: Fix warnings without a pragmaSebastian Huber2022-08-311-5/+5
| | | | | | | It seems that recent GCC versions expect that functions with a "const type *" parameter will read from the referenced location. Update #4662.
* ttest01/test-checks.c: Initialize variablesRyan Long2022-08-191-5/+5
| | | | | | These uninitialized variables were causing warnings to be generated. Updates #4662
* malloctest/init.c: Added pragmas to address gcc 12 warningsRyan Long2022-08-191-3/+38
| | | | Updates #4662
* dl09/dl-load.c: Fix gcc 12 warningRyan Long2022-08-191-1/+1
| | | | | | Changed format of size_t variable being printed. Updates #4662
* testsuite: Fix warningsChris Johns2022-08-051-2/+3
| | | | Updates #4662
* libtests/dl*: Bump up the size of CONFIGURE_INIT_TASK_STACK_SIZERyan Long2022-07-2910-10/+10
| | | | Updates #4682
* Support _REENT_THREAD_LOCAL Newlib configurationMatt Joyce2022-07-211-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.
* libtests/crypt01: Avoid stack overflowsSebastian Huber2022-07-041-1/+5
| | | | | The SHA512 functions may use huge amounts of stack space if compiled without optimization.
* testsuite: Fix gcc 12 warningsChris Johns2022-06-214-4/+5
|
* Newlib01: Add tests for rand() and lrand48()Matt Joyce2022-06-092-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.
* testsuite/libtests: Add exit03 to test exit() with C++Chris Johns2022-06-094-0/+199
| | | | Updates #4661
* termios06: Fix warningSebastian Huber2022-04-281-2/+2
| | | | Update #4493.
* heap: Fix heap statistics with protection enabledSebastian Huber2022-04-281-0/+4
| | | | Close #4644.
* libtests/dl06: Manually adding file headers and licenses.Ryan Long2022-04-272-0/+70
| | | | | These files had no header, copyright, or license. Based on git history, added appropriate copyright and license.
* libtests: Adding file headers and licensesRyan Long2022-04-275-0/+175
| | | | | These files had no file header, copyright, or license. Based on git history, added appropriate copyrights and licenses.
* testsuites/libtests/*/*.dts. stackchk02.doc: Change license to BSD-2Joel Sherrill2022-04-123-9/+66
| | | | Updates #3053.
* testsuites/libtests/[m-z]*: Change license to BSD-2Joel Sherrill2022-04-1227-81/+594
| | | | Updates #3053.
* testsuites/libtests/[a-l]*: Change license to BSD-2Joel Sherrill2022-04-1250-150/+1100
| | | | Updates #3053.
* testsuites/libtests/[p-z]*: Change license to BSD-2Joel Sherrill2022-04-0745-135/+990
| | | | Updates #3053.
* testsuites/libtests/[d-o]*: Change license to BSD-2Joel Sherrill2022-04-0739-117/+858
| | | | Updates #3053.
* testsuites/libtests/dl*: Change license to BSD-2Joel Sherrill2022-04-0781-243/+1782
| | | | Updates #3053.
* testsuites/libtests/[a-c]*: Change license to BSD-2Joel Sherrill2022-04-0724-72/+528
| | | | Updates #3053.
* newlib01: Added tests for exit proceduresMatt Joyce2022-03-312-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.
* testsuites/: Update Eric Norum contact info and normalize file headersJoel Sherrill2022-03-242-15/+6
|
* newlib01: Adjust variable nameSebastian Huber2022-03-241-4/+4
|
* newlib01: Check exit processing for file objectsMatt Joyce2022-03-241-16/+134
|
* testsuites: Manual file header clean upChristian Mauderer2022-03-101-6/+0
| | | | Updates #4625.
* bsps/testsuites/: Scripted embedded brains header file clean upJoel Sherrill2022-03-1038-224/+2
| | | | Updates #4625.
* testsuites/.../*doc: Manual cleanup of embedded brains File HeadersJoel Sherrill2022-03-108-48/+8
| | | | | | | There were not a lot of these and they did not match the patterns of the C. Updates #4625.
* newlib01: Edit asserts to check initializationMatt Joyce2022-02-161-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.
* cpukit: Prevent error with disabled stack checkerKinsey Moore2022-01-273-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
* Remove obsolete rtems_gxx_*() implementationSebastian Huber2022-01-273-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.