summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* libtests/dl10: Enter shell on demandSebastian Huber2022-01-141-10/+23
| | | | | Use rtems_shell_wait_for_input() similar to other potentially interactive test programs.
* libtests/ofw01: Fix device tree blob alignmentSebastian Huber2022-01-131-2/+2
| | | | A device tree blob must be aligned on an 8-byte boundary.
* Fix device tree blob alignmentSebastian Huber2022-01-111-2/+2
| | | | A device tree blob must be aligned on an 8-byte boundary.
* libtests/ofw01: Fix wrapped in bsp_fdt_get()Sebastian Huber2022-01-111-1/+15
| | | | | Use the stack pointer to check if we have to return the real device tree since bsp_fdt_get() may get called before the BSS is cleared to zero.
* untar: Make behavior similar to GNU or BSD tarChristian Mauderer2021-12-094-9/+245
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RTEMS untar implementation had problems with overwriting or integrating archives into existing directory structures. This patch adapts the behavior to mimic that of a GNU tar or BSD tar and extends the tar01 test to check for the behavior. That is: * If a directory structure exists, the files from the archive will be integrated. Existing files are overwritten. * If a file exists and the archive contains a directory with the same name, the file is removed and a directory is created. In the above example: if l1/l2 is a file it will be overwritten with a new directory. * If a directory exists and the archive contains a file with the same name, the directory will be replaced if it is empty. If it contains files, the result is an error. * An archive also can contain only a file without the parent directories. If in that case one of the parent directories exists as a file extracting the archive results in an error. In the example: if l1/l2 is a file and the archive doesn't contain the directories but only the file l1/l2/x.txt that would be an error. * In case of an error, it is possible that the archive has been partially extracted. Closes #4568
* libc: Optimize malloc() initializationSebastian Huber2021-11-301-15/+22
| | | | | | | | | | | | | | | | The BSPs provide memory for the separate C Program Heap initialization via _Memory_Get(). Most BSPs provide exactly one memory area. Only two BSPs provide more than one memory area (arm/altera-cyclone-v and bsps/powerpc/mpc55xxevb). Only if more than one memory area is provided, there is a need to use _Heap_Extend(). Provide two implementations to initialize the separate C Program Heap and let the BSP select one of the implementations based on the number of provided memory areas. This gets rid of a dependency on _Heap_Extend(). It also avoids dead code sections for most BSPs. Change licence to BSD-2-Clause according to file history. Update #3053.
* rtems: Use RTEMS_WHO_AM_I for rtems_task_ident()Sebastian Huber2021-11-182-2/+2
|
* libtests/calloc.c: Fix reported memory leakzack leung2021-11-031-1/+3
| | | | | | | | This fix came from Code Inspector, flagged by one of the analysis that was done. This test code is compiled only but better to address the issues so future static analysis reports will not include it.
* build: Remove old build systemSebastian Huber2021-09-212-1739/+0
| | | | | Close #3250. Close #4081.
* i2c: Add non blocking read / writeChristian Mauderer2021-06-221-1/+120
| | | | | | | This adds the possibility to open an I2C bus with O_NONBLOCK (or set it later via fcntl) to get non-blocking transmissions. This means that if the bus is busy, a read, write or transfer ioctl will return with a EAGAIN errno.
* testsuites: Remove telnetd01Vijay Kumar Banerjee2021-05-203-155/+0
| | | | | telnetd01 test cannot be run without a network stack, so this test is being moved to the rtems-net-legacy repository.
* Return NULL for zero size allocationsSebastian Huber2021-05-061-55/+26
| | | | | | | | | | | | | | | In POSIX, zero size memory allocations are implementation-defined behaviour. The implementation has two options: https://pubs.opengroup.org/onlinepubs/9699919799/functions/malloc.html https://pubs.opengroup.org/onlinepubs/9699919799/functions/posix_memalign.html Linux and FreeBSD return a unique pointer for zero size memory allocations. Return NULL on RTEMS to more likely catch the use of a zero size memory area by erroneous applications. Update #4390.
* Make zero size allocation result consistentSebastian Huber2021-05-041-10/+96
| | | | | | | | | | | | | | | | | | The zero size allocations had no consistent behaviour in RTEMS. For example, malloc( 0 ) returned NULL and posix_memalign( &p, align, 0 ) returned in p a unique pointer (or NULL if no memory is available). In POSIX, zero size memory allocations are implementation-defined behaviour. The implementation has two options: https://pubs.opengroup.org/onlinepubs/9699919799/functions/malloc.html https://pubs.opengroup.org/onlinepubs/9699919799/functions/posix_memalign.html Linux and FreeBSD return a unique pointer for zero size memory allocations. Use this approach for RTEMS as well throughout the memory allocation directives Close #4390.
* libtest: Fix use of flexible array memberSebastian Huber2021-05-031-15/+15
| | | | Flexible array members must not appear in the middle of a structure.
* Makefile.am: Remove legacy networking filesVijay Kumar Banerjee2021-04-261-69/+0
|
* Fix calloc() behaviour in case of overflowSebastian Huber2021-04-201-10/+13
| | | | | | | The multiplication to calculate the length of the memory area to allocate may overflow. Return NULL in case of an overflow. Close #4389.
* Revert "cpukit: Remove telnetd"Vijay Kumar Banerjee2021-04-133-0/+155
| | | | This reverts commit 3299dda2454a8847c670a732f6c12ef1f2cc5dd0.
* testsuites: Remove all legacy networking testsVijay Kumar Banerjee2021-04-0712-1379/+0
| | | | Update #3850
* cpukit: Remove telnetdVijay Kumar Banerjee2021-04-073-155/+0
| | | | Update #3850
* testsuites/libtests: Remove networking01Vijay Kumar Banerjee2021-04-073-196/+0
| | | | Update #3850
* libtests/block14: Fix warningSebastian Huber2021-04-071-1/+1
| | | | | | | | | Fix warning: testsuites/libtests/block14/init.c:198:8: warning: 'sc' may be used uninitialized in this function [-Wmaybe-uninitialized] Update #3689.
* Restore FDT in ofw01 to avoid test timeout on RISCVJiri Gaisler2021-03-301-0/+1
|