diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-05-14 17:44:30 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-05-14 17:44:30 +0000 |
commit | 51dc1b3fde7461da54a0878841697acf50e5af6e (patch) | |
tree | 2f05470f1951b7e4a90c425ac62207bf84507595 /testsuites/sptests | |
parent | 2009-05-14 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-51dc1b3fde7461da54a0878841697acf50e5af6e.tar.bz2 |
2009-05-14 Joel Sherrill <joel.sherrill@oarcorp.com>
* spprintk/init.c: More test cases.
Diffstat (limited to 'testsuites/sptests')
-rw-r--r-- | testsuites/sptests/ChangeLog | 4 | ||||
-rw-r--r-- | testsuites/sptests/spprintk/init.c | 23 |
2 files changed, 23 insertions, 4 deletions
diff --git a/testsuites/sptests/ChangeLog b/testsuites/sptests/ChangeLog index c2bb4347c9..6e9c32dede 100644 --- a/testsuites/sptests/ChangeLog +++ b/testsuites/sptests/ChangeLog @@ -1,5 +1,9 @@ 2009-05-14 Joel Sherrill <joel.sherrill@oarcorp.com> + * spprintk/init.c: More test cases. + +2009-05-14 Joel Sherrill <joel.sherrill@oarcorp.com> + * sp09/screen11.c, sp09/sp09.scn: Add case where buffer size is not large enough for buffer node overhead. diff --git a/testsuites/sptests/spprintk/init.c b/testsuites/sptests/spprintk/init.c index 382be54d79..cd835e12ec 100644 --- a/testsuites/sptests/spprintk/init.c +++ b/testsuites/sptests/spprintk/init.c @@ -21,13 +21,28 @@ rtems_task Init( bool retbool; Heap_Information_block info; - puts( "\n\n*** TEST PRINTK ***" ); + printk( "\n\n*** TEST PRINTK ***\n" ); printk( "bad format -- %%q in parentheses (%q)\n" ); - printk( "bad format -- %%lq in parentheses (%lq)\n" ); - - puts( "*** END OF TEST PRINTK ***" ); + printk( "bad format -- %%lq in parentheses (%lq)\n", 0x1234 ); + + printk( "%%O octal upper case 16 -- %O\n", 16 ); + printk( "%%o octal lower case of 16 -- %O\n", 16 ); + printk( "%%I of 16 -- %I\n", 16 ); + printk( "%%i of 16 -- %i\n", 16 ); + printk( "%%D of 16 -- %D\n", 16 ); + printk( "%%d of 16 -- %d\n", 16 ); + printk( "%%U of 16 -- %U\n", 16 ); + printk( "%%u of 16 -- %u\n", 16 ); + printk( "%%X of 16 -- %X\n", 16 ); + printk( "%%x of 16 -- %x\n", 16 ); + printk( "%%p of 0x1234 -- %p\n", (void *)0x1234 ); + printk( "%%s of Mary Had a Little Lamb -- (%s)\n", + "Mary Had a Little Lamb" ); + printk( "%%s of NULL -- (%s)\n", NULL ); + + printk( "*** END OF TEST PRINTK ***" ); rtems_test_exit( 0 ); } |