Commit Graph

14 Commits

Author SHA1 Message Date
Sebastian Huber
03e86553d2 tests: Fix rtems_test_spin_until_next_tick()
This bug surfaced due to sporadic failures in sptimecounter02.  Adjust
rtems_test_spin_for_ticks() to include the partial tick in the argument
value.
2018-12-07 14:22:00 +01:00
Sebastian Huber
047e8aa952 tests: Remove unused locked_printk() 2018-01-19 09:53:18 +01:00
Chris Johns
24d0ee57a4 cpukit, testsuite: Add rtems_printf and rtems_printer support.
This change adds rtems_printf and related functions and wraps the
RTEMS print plugin support into a user API. All references to the
plugin are removed and replaced with the rtems_printer interface.

Printk and related functions are made to return a valid number of
characters formatted and output.

The function attribute to check printf functions has been added
to rtems_printf and printk. No changes to remove warrnings are part
of this patch set.

The testsuite has been moved over to the rtems_printer. The testsuite
has a mix of rtems_printer access and direct print control via the
tmacros.h header file. The support for begink/endk has been removed
as it served no purpose and only confused the code base. The testsuite
has not been refactored to use rtems_printf. This is future work.
2016-05-25 15:47:34 +10:00
Sebastian Huber
b97bc8bc71 tests: Add locked_printf_plugin()
Add locked_vprintf().  Return an int just like printf(), etc.
2014-05-07 18:27:19 +02:00
Chris Johns
c49985691f Change all references of rtems.com to rtems.org. 2014-03-21 08:10:47 +11:00
Joel Sherrill
9b4422a251 Remove All CVS Id Strings Possible Using a Script
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.
2012-05-11 08:44:13 -05:00
Sebastian Huber
77998753b5 Use alternative API
Replaced Allocate_majority_of_workspace() with
rtems_workspace_allocate().  Replaced Allocate_majority_of_heap() with
rtems_heap_greedy_allocate().
2012-02-17 16:56:17 +01:00
Jennifer Averett
d4a0934bf4 2011-07-29 Jennifer Averett <Jennifer.Averett@OARcorp.com>
* support/include/test_support.h: Fixed incorrect name in prototype.
2011-07-29 13:48:16 +00:00
Joel Sherrill
152a284188 2011-06-28 Joel Sherrill <joel.sherrill@oarcorp.com>
* configure.ac, support/include/test_support.h:
	* support/src/locked_print.c: New file.
2011-06-28 21:09:13 +00:00
Joel Sherrill
be8bdff62b 2010-07-14 Joel Sherrill <joel.sherrill@oarcorp.com>
* support/include/test_support.h, support/src/test_support.c: Add
	Allocate_majority_of_heap().
2010-07-14 16:03:57 +00:00
Joel Sherrill
82fbd358ba 2010-06-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* support/include/test_support.h, support/src/tmtests_empty_function.c:
	Add helper so it is easier to write a basic repeated operation
	tmtest.
	* support/src/tmtests_support.c: New file.
2010-06-21 16:54:17 +00:00
Glenn Humphrey
6cc1c294d6 2009-12-08 Glenn Humphrey <glenn.humphrey@OARcorp.com>
* support/include/test_support.h, support/include/tmacros.h,
	support/src/test_support.c: Added support functions to spin for a
	number of ticks and to spin until the next tick.
	* support/src/spin.c: New file.
2009-12-08 21:39:21 +00:00
Ralf Corsepius
aea32337ed 2009-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>
* support/include/test_support.h: Add missing prototypes.
2009-10-26 05:33:50 +00:00
Jennifer Averett
ccc4203563 2008-02-04 Jennifer Averett <jennifer.averett@OARcorp.com>
* support/include/test_support.h, support/src/test_support.c: New files.
2008-02-04 19:40:33 +00:00