source: rtems/testsuites/sptests/spprintk/spprintk.scn @ b1196e3

4.115
Last change on this file since b1196e3 was b1196e3, checked in by Sebastian Huber <sebastian.huber@…>, on 03/10/14 at 07:13:06

printk: Add support for long long

  • Property mode set to 100644
File size: 1.5 KB
RevLine 
[046f4715]1*** TEST PRINTK ***
2This is a test of putk
3
4bad format -- %q in parentheses (q)
5bad format -- %lq in parentheses (q)
6%O octal upper case 16 -- 20
7%o octal lower case of 16 -- 20
8%I of 16 -- 16
9%i of 16 -- 16
10%D of 16 -- 16
11%d of 16 -- 16
12%-3d of 16 --  16
13%U of 16 -- 16
14%u of 16 -- 16
15%X of 16 -- 10
16%x of 16 -- 10
17%p of 0x1234 -- 1234
[b1196e3]18%lo of 2147483647 -- 17777777777
19%li of 2147483647 -- 2147483647
20%lu of 2147483647 -- 2147483647
21%lx of 2147483647 -- 7FFFFFFF
22%lo of -2147483648 -- 20000000000
23%li of -2147483648 -- -2147483648
24%lx of -2147483648 -- 80000000
25%lo of 4294967295 -- 37777777777
26%lu of 4294967295 -- 4294967295
27%lx of 4294967295 -- FFFFFFFF
28%llo of 9223372036854775807 -- 777777777777777777777
29%lli of 9223372036854775807 -- 9223372036854775807
30%llu of 9223372036854775807 -- 9223372036854775807
31%llx of 9223372036854775807 -- 7FFFFFFFFFFFFFFF
32%llo of -9223372036854775808 -- 1000000000000000000000
33%lli of -9223372036854775808 -- -9223372036854775808
34%llx of -9223372036854775808 -- 8000000000000000
35%llo of 18446744073709551615 -- 1777777777777777777777
36%llu of 18446744073709551615 -- 18446744073709551615
37%llx of 18446744073709551615 -- FFFFFFFFFFFFFFFF
[046f4715]38%d of -16 -- -16
39%d of -16 -- -16
40%u of -16 -- 4294967280
41%s of Mary Had a Little Lamb -- (Mary Had a Little Lamb)
42%s of NULL -- ()
43%12s of joel -- (                joel)
44%4s of joel -- (joel)
45%-12s of joel -- (joel                )
46%-4s of joel -- (joel)
47%c of X -- (X)
[ba959a4b]48
49getchark - NULL getchar method - return -1
50getchark - test getchar method - returns 0x35
[3ee8430b]51*** END OF TEST PRINTK ***
Note: See TracBrowser for help on using the repository browser.