summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/malloctest (follow)
Commit message (Collapse)AuthorAgeFilesLines
* testsuites: Remove CONFIGURE_MALLOC_STATISTICSSebastian Huber2020-03-311-2/+0
| | | | | | This configuration option is obsolete since 2014. Update #1367.
* Add rtems_malloc() and rtems_calloc()Sebastian Huber2018-11-121-0/+51
| | | | Close #3583.
* malloctest: Hide NULL pointer from compilerSebastian Huber2018-10-241-6/+5
| | | | | Disabling a warning does not prevent the compiler from reasoning what it is supposed to do with a somewhat undefined function call.
* tests: Use rtems_task_exit()Sebastian Huber2018-10-051-2/+1
| | | | Update #3533.
* testsuite/libtests: Merged nested Makefile.am files into one Makefile.amChris Johns2018-04-101-21/+0
| | | | | | This change is part of the testsuite Makefile.am reorganization. Update #3382
* libtests/malloctest: Fix 64-bit targetsSebastian Huber2017-11-241-4/+6
| | | | Update #3082.
* tests: Use simple console driverSebastian Huber2017-11-061-1/+1
| | | | | Update #3170. Update #3199.
* tests: Remove TEST_INITSebastian Huber2017-10-281-2/+0
| | | | | | | | The TEST_EXTERN is a used only by the system.h style tests and they use CONFIGURE_INIT appropriately. Update #3170. Update #3199.
* testsuite: Use printk for all test output where possible.Chris Johns2017-10-231-0/+2
| | | | | | | | | | - Remove the printf support leaving the direct printk support configured with TESTS_USE_PRINTK and all other output goes via a buffered vsniprintf call to printk. - Control the test's single init for functions and global data with TEST_INIT and not CONFIGURE_INIT. They are now separate. Updates #3170.
* malloctest/init.c: Disable check maximum size warning to allow error test caseJoel Sherrill2017-06-211-0/+3
|
* testsuites: Avoid Giant lockSebastian Huber2016-05-201-4/+4
| | | | | | | | | Replace _Thread_Disable_dispatch() with _Thread_Dispatch_disable(). Replace _Thread_Enable_dispatch() with _Thread_Dispatch_enable(). This is a preparation to remove the Giant lock. Update #2555.
* malloc: Fix early realloc() allocationSebastian Huber2016-04-061-0/+17
|
* malloc: Add _Malloc_System_state()Sebastian Huber2016-02-251-1/+26
| | | | | | | | | | Replace malloc_is_system_state_OK() with _Malloc_System_state() to allow early allocations, e.g. in bsp_start(). Here the _Thread_Executing is NULL, thus an _API_Mutex_Lock() would lead to a NULL pointer access. Move malloc() support code to general case rtems_heap_allocate_aligned_with_boundary(). Use rtems_heap_allocate_aligned_with_boundary() to avoid duplicated code.
* malloctest/init.c: Fix use uninitialized warningJoel Sherrill2015-03-241-0/+3
|
* libcsupport: Delete malloc statisticsSebastian Huber2014-11-281-1/+0
| | | | | | | Use the heap handler statistics instead. Add heap walk option to MALLOC shell command. close #1367
* libtests/malloctest/init.c: Fix warningJoel Sherrill2014-11-201-14/+10
| | | | | | | posix_memalign() is prototyped to take a non-NULL parameter. But our test is deliberately passing one in. With the -Wnon-null warning flag enabled, we will always get warnings on this test unless we disable that warning for this single test case.
* Change all references of rtems.com to rtems.org.Chris Johns2014-03-213-3/+3
|
* tests/libtests: Use <rtems/test.h>Sebastian Huber2014-03-203-2/+6
|
* score: Add _Heap_Size_with_overhead()Sebastian Huber2014-02-042-0/+21
|
* libtests/malloctest: Fix heap extend test caseSebastian Huber2013-11-181-1/+1
|
* PR766: Delete __RTEMS_VIOLATE_KERNEL_VISIBILITY__Sebastian Huber2013-08-081-1/+0
|
* libtests/malloctest: Fixes for RTEMS_DEBUGSebastian Huber2013-07-242-5/+36
|
* libtests/malloctest: Add test caseSebastian Huber2012-12-221-0/+25
|
* libtests/malloctest: Add test caseSebastian Huber2012-12-221-0/+24
|
* score: Append to free list in _Heap_Extend()Sebastian Huber2012-10-251-0/+42
|
* score: Change _Heap_Extend() APISebastian Huber2012-10-251-0/+7
| | | | | | | | | | | | | | The _Heap_Extend() has now the same signature as _Heap_Initialize(). The 4th parameter is ignored (page size in _Heap_Initialize()). Add Heap_Area and Heap_Initialization_or_extend_handler. Add and test _Heap_No_extend(). This helps to do a table based heap initialization and extension. Create a table of Heap_Area elements and iterate through it. Set the handler to _Heap_Initialize() in the first iteration and then to _Heap_Extend().
* libcsupport: Adjust malloc_walk() prototypeSebastian Huber2012-05-162-10/+10
| | | | | | | | The header file <rtems/malloc.h> provides now also the malloc_walk() prototype. The malloc_walk() prototype reflects now the _Protected_heap_Walk() API. The return status helps to print only in case of an error.
* Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill2012-05-114-10/+0
| | | | | | | | | | | | Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
* Revert: Remove CVS IdsJoel Sherrill2012-05-071-0/+5
| | | | | See http://www.rtems.org/pipermail/rtems-devel/2012-May/001006.html for details.
* Remove CVS-Ids.Ralf Corsépius2012-05-041-5/+0
|
* Remove all .cvsignore files.Joel Sherrill2012-02-011-2/+0
|
* 2011-12-08 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2011-12-081-3/+1
| | | | | | | | | | | | | | | | | | | | | | PR 1589/build * block01/Makefile.am, block02/Makefile.am, block03/Makefile.am, block04/Makefile.am, block05/Makefile.am, block06/Makefile.am, block07/Makefile.am, block08/Makefile.am, block09/Makefile.am, block10/Makefile.am, bspcmdline01/Makefile.am, cpuuse/Makefile.am, devfs01/Makefile.am, devfs02/Makefile.am, devfs03/Makefile.am, devfs04/Makefile.am, deviceio01/Makefile.am, devnullfatal01/Makefile.am, dumpbuf01/Makefile.am, ftp01/Makefile.am, gxx01/Makefile.am, heapwalk/Makefile.am, malloc02/Makefile.am, malloc03/Makefile.am, malloc04/Makefile.am, malloc05/Makefile.am, malloctest/Makefile.am, monitor/Makefile.am, monitor02/Makefile.am, mouse01/Makefile.am, putenvtest/Makefile.am, rtems++/Makefile.am, rtmonuse/Makefile.am, stackchk/Makefile.am, stackchk01/Makefile.am, stringto01/Makefile.am, tar01/Makefile.am, tar02/Makefile.am, tar03/Makefile.am, termios/Makefile.am, termios01/Makefile.am, termios02/Makefile.am, termios03/Makefile.am, termios04/Makefile.am, termios05/Makefile.am, termios06/Makefile.am, termios07/Makefile.am, termios08/Makefile.am, tztest/Makefile.am: Remove obsolete optional manager capability.
* 2011-05-05 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2011-05-051-5/+13
| | | | | | * devnullfatal01/testcase.h, malloc02/init.c, malloc04/init.c, malloctest/init.c, termios03/termios_testdriver_polled.c, termios04/termios_testdriver_intr.c: Remove warnings.
* 2011-03-09 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2011-03-092-9/+24
| | | | | * malloctest/init.c: Improve coverage. * malloctest/malloctest.scn: Update.
* Add HAVE_CONFIG_H.Ralf Corsepius2011-02-222-0/+8
|
* 2010-08-25 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2010-08-251-3/+3
| | | | * malloctest/init.c: Update for heap API changes.
* 2010-07-15 Bharath Suri <bharath.s.jois@gmail.com>Joel Sherrill2010-07-151-0/+2
| | | | | PR 1617/testing * malloctest/init.c: Added new case to exercise _realloc_r.
* 2010-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2010-07-151-1/+16
| | | | | * malloctest/init.c: Added test for rtems_heap_allocate_aligned_with_boundary().
* 2010-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2010-07-061-0/+2
| | | | * malloctest/system.h: Enable malloc statistics.
* 2010-06-28 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2010-06-281-15/+8
| | | | | * Makefile.am, configure.ac, malloctest/init.c, termios03/init.c, termios03/termios03.scn: Handle some of the VKILL and VERASE cases.
* 2010-06-23 Joel Sherrill <joel.sherrilL@OARcorp.com>Joel Sherrill2010-06-231-0/+1
| | | | | | | | | | | | * block01/Makefile.am, block02/Makefile.am, block03/Makefile.am, block04/Makefile.am, block05/Makefile.am, block06/Makefile.am, block07/Makefile.am, block08/Makefile.am, block09/Makefile.am, block10/Makefile.am, bspcmdline01/Makefile.am, cpuuse/Makefile.am, heapwalk/Makefile.am, malloctest/Makefile.am, monitor/Makefile.am, monitor02/Makefile.am, putenvtest/Makefile.am, rtems++/Makefile.am, rtmonuse/Makefile.am, stackchk/Makefile.am, stackchk01/Makefile.am, stringto01/Makefile.am, termios/Makefile.am, termios01/Makefile.am, termios02/Makefile.am: Revert.
* 2010-06-23 Joel Sherrill <joel.sherrilL@OARcorp.com>Joel Sherrill2010-06-231-1/+0
| | | | | | | | | | | | | * block01/Makefile.am, block02/Makefile.am, block03/Makefile.am, block04/Makefile.am, block05/Makefile.am, block06/Makefile.am, block07/Makefile.am, block08/Makefile.am, block09/Makefile.am, block10/Makefile.am, bspcmdline01/Makefile.am, cpuuse/Makefile.am, heapwalk/Makefile.am, malloctest/Makefile.am, monitor/Makefile.am, monitor02/Makefile.am, putenvtest/Makefile.am, rtems++/Makefile.am, rtmonuse/Makefile.am, stackchk/Makefile.am, stackchk01/Makefile.am, stringto01/Makefile.am, termios/Makefile.am, termios01/Makefile.am, termios01/init.c, termios02/Makefile.am: Fix bug so existing test code for rtems_termios_baud_to_index() is executed.
* 2010-06-22 Jennifer Averett <Jennifer.Averett@OARcorp.com>Jennifer Averett2010-06-221-0/+14
| | | | * malloctest/init.c: Added error case with malloc of size 0.
* 2010-06-22 Jennifer Averett <Jennifer.Averett@OARcorp.com>Jennifer Averett2010-06-221-0/+7
| | | | * malloctest/init.c: Added test to check failure branch on calloc.
* 2010-06-07 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2010-06-071-12/+30
| | | | * heapwalk/init.c, malloctest/init.c: Update for heap extend changes.
* Whitespace removal.Ralf Corsepius2009-11-302-33/+33
|
* Use %zu instead of %d to print size_t's.Ralf Corsepius2009-10-261-1/+1
|
* Use %zu instead of %d to print size_t's.Ralf Corsepius2009-10-261-2/+2
|
* Fix _Heap_Resize_block args.Ralf Corsepius2009-10-261-1/+1
|
* Eliminate unused vars.Ralf Corsepius2009-10-261-9/+4
|