summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spprintk
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-06-24 06:35:29 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-06-24 06:35:29 +0000
commit046f47154f6691db5d4bef5493f63eb609c0e57f (patch)
treea0529e04d3b924f8facca80460091ad650829cfa /testsuites/sptests/spprintk
parent2009-06-18 Fernando Nicodemos <fgnicodemos@terra.com.br> (diff)
downloadrtems-046f47154f6691db5d4bef5493f63eb609c0e57f.tar.bz2
2009-06-24 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac, spprintk/init.c, spprintk/spprintk.scn: Enhance spprintk. Add two new fatal error tests to cover __assert_func. * spfatal11/.cvsignore, spfatal11/Makefile.am, spfatal11/init.c, spfatal11/spfatal11.doc, spfatal11/spfatal11.scn: New files.
Diffstat (limited to 'testsuites/sptests/spprintk')
-rw-r--r--testsuites/sptests/spprintk/init.c4
-rw-r--r--testsuites/sptests/spprintk/spprintk.scn31
2 files changed, 34 insertions, 1 deletions
diff --git a/testsuites/sptests/spprintk/init.c b/testsuites/sptests/spprintk/init.c
index 4acf3e104c..bff53ac0bd 100644
--- a/testsuites/sptests/spprintk/init.c
+++ b/testsuites/sptests/spprintk/init.c
@@ -23,6 +23,8 @@ rtems_task Init(
printk( "\n\n*** TEST PRINTK ***\n" );
+ putk( "This is a test of putk\n" );
+
printk( "bad format -- %%q in parentheses (%q)\n" );
printk( "bad format -- %%lq in parentheses (%lq)\n", 0x1234 );
@@ -56,7 +58,7 @@ rtems_task Init(
printk( "%%c of X -- (%c)\n", 'X' );
- printk( "*** END OF TEST PRINTK ***" );
+ printk( "*** END OF TEST PRINTK ***\n" );
rtems_test_exit( 0 );
}
diff --git a/testsuites/sptests/spprintk/spprintk.scn b/testsuites/sptests/spprintk/spprintk.scn
index e69de29bb2..48dac9f493 100644
--- a/testsuites/sptests/spprintk/spprintk.scn
+++ b/testsuites/sptests/spprintk/spprintk.scn
@@ -0,0 +1,31 @@
+sparc-rtems4.10-run is /opt/rtems-4.10/bin/sparc-rtems4.10-run
+
+
+*** TEST PRINTK ***
+This is a test of putk
+
+bad format -- %q in parentheses (q)
+bad format -- %lq in parentheses (q)
+%O octal upper case 16 -- 20
+%o octal lower case of 16 -- 20
+%I of 16 -- 16
+%i of 16 -- 16
+%D of 16 -- 16
+%d of 16 -- 16
+%-3d of 16 -- 16
+%U of 16 -- 16
+%u of 16 -- 16
+%X of 16 -- 10
+%x of 16 -- 10
+%p of 0x1234 -- 1234
+%d of -16 -- -16
+%d of -16 -- -16
+%u of -16 -- 4294967280
+%s of Mary Had a Little Lamb -- (Mary Had a Little Lamb)
+%s of NULL -- ()
+%12s of joel -- ( joel)
+%4s of joel -- (joel)
+%-12s of joel -- (joel )
+%-4s of joel -- (joel)
+%c of X -- (X)
+*** END OF TEST PRINTK *** \ No newline at end of file