summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spprintk/init.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-05-14 14:29:40 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-05-14 14:29:40 +0000
commit02ba7cac299252839e5cd165bf3c7832be88fa1b (patch)
treea75667b7f38790c506e33f06ba9680616c5daed4 /testsuites/sptests/spprintk/init.c
parent2009-05-13 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-02ba7cac299252839e5cd165bf3c7832be88fa1b.tar.bz2
2009-05-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, configure.ac, spwatchdog/system.h, spwkspace/Makefile.am, spwkspace/init.c: Add shell of test for printk. These will help coverage. Simplify spwkspace. * spprintk/.cvsignore, spprintk/Makefile.am, spprintk/init.c, spprintk/spprintk.scn: New files. * spwkspace/system.h: Removed.
Diffstat (limited to 'testsuites/sptests/spprintk/init.c')
-rw-r--r--testsuites/sptests/spprintk/init.c45
1 files changed, 45 insertions, 0 deletions
diff --git a/testsuites/sptests/spprintk/init.c b/testsuites/sptests/spprintk/init.c
new file mode 100644
index 0000000000..382be54d79
--- /dev/null
+++ b/testsuites/sptests/spprintk/init.c
@@ -0,0 +1,45 @@
+/*
+ * Exercise Printk
+ *
+ * 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 argument
+)
+{
+ void *p1;
+ bool retbool;
+ Heap_Information_block info;
+
+ puts( "\n\n*** TEST PRINTK ***" );
+
+ printk( "bad format -- %%q in parentheses (%q)\n" );
+
+ printk( "bad format -- %%lq in parentheses (%lq)\n" );
+
+ puts( "*** END OF TEST PRINTK ***" );
+ rtems_test_exit( 0 );
+}
+
+/* configuration information */
+
+#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>
+