2009-05-14 Joel Sherrill <joel.sherrill@oarcorp.com>

* spprintk/init.c: More test cases.
This commit is contained in:
Joel Sherrill
2009-05-14 17:44:30 +00:00
parent d4b75d2043
commit 51dc1b3fde
2 changed files with 22 additions and 3 deletions
+4
View File
@@ -1,3 +1,7 @@
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
+18 -3
View File
@@ -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" );
printk( "bad format -- %%lq in parentheses (%lq)\n", 0x1234 );
puts( "*** END OF TEST PRINTK ***" );
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 );
}