summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spcoverage/init.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-08-11 17:53:09 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-08-11 17:53:09 +0000
commitc8ce0825648a2f084253c4c43af2c5fb4f164a03 (patch)
treee5d3393ff686a00cb2ccb5bf3d435aa10cd77955 /testsuites/sptests/spcoverage/init.c
parent2009-08-11 Josh Switnicki <josh.switnicki@utoronto.ca> (diff)
downloadrtems-c8ce0825648a2f084253c4c43af2c5fb4f164a03.tar.bz2
2009-08-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, configure.ac, sp62/init.c, sp64/init.c: Add new test and adjust existing for alignment. New test ensures coverage begin and end marker methods are exercised so they do not get considered unexecuted. * spcoverage/.cvsignore, spcoverage/Makefile.am, spcoverage/init.c, spcoverage/spcoverage.doc, spcoverage/spcoverage.scn: New files.
Diffstat (limited to 'testsuites/sptests/spcoverage/init.c')
-rw-r--r--testsuites/sptests/spcoverage/init.c41
1 files changed, 41 insertions, 0 deletions
diff --git a/testsuites/sptests/spcoverage/init.c b/testsuites/sptests/spcoverage/init.c
new file mode 100644
index 0000000000..631b7b7392
--- /dev/null
+++ b/testsuites/sptests/spcoverage/init.c
@@ -0,0 +1,41 @@
+/*
+ * COPYRIGHT (c) 1989-2009.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ *
+ * $Id$
+ */
+
+#include "tmacros.h"
+
+rtems_task Init(
+ rtems_task_argument ignored
+)
+{
+ puts( "\n\n*** TEST COVERAGE MARKERS ***" );
+
+ puts( "Init - If coverage enabled, call coverage marker methods" );
+ #if defined(RTEMS_COVERAGE)
+ start_coverage();
+ end_coverage();
+ #endif
+
+ puts( "*** END OF TEST COVERAGE MARKERS ***" );
+ rtems_test_exit(0);
+}
+
+/* configuration information */
+
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
+
+#define CONFIGURE_MAXIMUM_TASKS 1
+#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
+
+#define CONFIGURE_INIT
+#include <rtems/confdefs.h>
+
+/* global variables */