~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to tests/test-char.c

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
#ifdef CONFIG_HAS_GLIB_SUBPROCESS_TESTS
41
41
static void char_stdio_test_subprocess(void)
42
42
{
43
 
    CharDriverState *chr;
 
43
    Chardev *chr;
44
44
    CharBackend be;
45
45
    int ret;
46
46
 
68
68
static void char_ringbuf_test(void)
69
69
{
70
70
    QemuOpts *opts;
71
 
    CharDriverState *chr;
 
71
    Chardev *chr;
72
72
    CharBackend be;
73
73
    char *data;
74
74
    int ret;
109
109
static void char_mux_test(void)
110
110
{
111
111
    QemuOpts *opts;
112
 
    CharDriverState *chr, *base;
 
112
    Chardev *chr, *base;
113
113
    char *data;
114
114
    FeHandler h1 = { 0, }, h2 = { 0, };
115
115
    CharBackend chr_be1, chr_be2;
185
185
static void char_null_test(void)
186
186
{
187
187
    Error *err = NULL;
188
 
    CharDriverState *chr;
 
188
    Chardev *chr;
189
189
    CharBackend be;
190
190
    int ret;
191
191
 
227
227
 
228
228
static void char_invalid_test(void)
229
229
{
230
 
    CharDriverState *chr;
 
230
    Chardev *chr;
231
231
 
232
232
    chr = qemu_chr_new("label-invalid", "invalid");
233
233
    g_assert_null(chr);