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

Last change on this file since 1082798 was 1082798, checked in by Sebastian Huber <sebastian.huber@…>, on Oct 23, 2017 at 11:30:44 AM

score: Add _IO_Printf() and _IO_Vprintf()

The previous vprintk() implementation had a questionable licence header,
lacks support for the 'z' and 'j' format specifiers, is not robust
against invalid format specifiers, uses a global variable for output.
Replace it with a stripped down version of the FreeBSD kernel kvprintf()
function.

The new implementation allows a low overhead rtems_snprintf() if
necessary.

Update #3199.
Close #3216.

  • Property mode set to 100644
File size: 2.0 KB
Line 
1*** BEGIN OF TEST SPPRINTK ***
2This is a test of putk
3
4bad format                   -- %q in parentheses (%q)
5bad format                   -- %lq in parentheses (%lq)
6%o of 16                     -- 20
7%i of 16                     -- 16
8%d of 16                     -- 16
9'%-3d' of 16                 -- '16 '
10'%3d' of 16                  -- ' 16'
11%u of 16                     -- 16
12%X of 16                     -- 10
13%x of 16                     -- 10
14%p of 0x1234                 -- 0x1234
15%lo of 2147483647            -- 17777777777
16%li of 2147483647            -- 2147483647
17%lu of 2147483647            -- 2147483647
18%lx of 2147483647            -- 7fffffff
19%lo of -2147483648           -- 20000000000
20%li of -2147483648           -- -2147483648
21%lx of -2147483648           -- 80000000
22%lo of 4294967295            -- 37777777777
23%lu of 4294967295            -- 4294967295
24%lx of 4294967295            -- ffffffff
25%llo of 9223372036854775807  -- 777777777777777777777
26%lli of 9223372036854775807  -- 9223372036854775807
27%llu of 9223372036854775807  -- 9223372036854775807
28%llx of 9223372036854775807  -- 7fffffffffffffff
29%llo of -9223372036854775808 -- 1000000000000000000000
30%lli of -9223372036854775808 -- -9223372036854775808
31%llx of -9223372036854775808 -- 8000000000000000
32%llo of 18446744073709551615 -- 1777777777777777777777
33%llu of 18446744073709551615 -- 18446744073709551615
34%llx of 18446744073709551615 -- ffffffffffffffff
35%d of -16                    -- -16
36%d of -16                    -- -16
37%u of -16                    -- 4294967280
38%s of Mary Had a Little Lamb -- 'Mary Had a Little Lamb'
39%s of NULL                   -- '(null)'
40%12s of joel                 -- '                joel'
41%4s of joel                  -- 'joel'
42%-12s of joel                -- 'joel                '
43%-4s of joel                 -- 'joel'
44%c of X                      -- 'X'
45%hhu of X                    -- 88
46
47getchark - NULL getchar method - return -1
48getchark - test getchar method - returns 0x35
49
50*** END OF TEST SPPRINTK ***
Note: See TracBrowser for help on using the repository browser.