]> git.proxmox.com Git - mirror_qemu.git/commit - tests/test-qobject-input-visitor.c
qapi: don't pass two copies of TestInputVisitorData to tests
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 30 Sep 2016 14:45:29 +0000 (15:45 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 25 Oct 2016 14:25:54 +0000 (16:25 +0200)
commitb1d2e5f1b0612178cdc2752fb0f60407dd87960e
tree3cbb9d57d8d2f1a38aa201098c03b5dcdb07524e
parent7d5e199ade76c53ec316ab6779800581bb47c50a
qapi: don't pass two copies of TestInputVisitorData to tests

The input_visitor_test_add() method was accepting an instance
of 'TestInputVisitorData' and passing it as the 'user_data'
parameter to test functions. The main 'TestInputVisitorData'
instance that was actually used, was meanwhile being allocated
automatically by the test framework fixture setup.

The 'user_data' parameter is going to be needed for tests
added in later patches, so getting rid of the current mistaken
usage now allows this.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-Id: <1475246744-29302-7-git-send-email-berrange@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
tests/test-qobject-input-visitor.c