]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
tests: Test QOM interface casting
authorIgor Mammedov <imammedo@redhat.com>
Fri, 20 Dec 2013 21:14:40 +0000 (22:14 +0100)
committerAndreas Färber <afaerber@suse.de>
Tue, 24 Dec 2013 16:27:17 +0000 (17:27 +0100)
commit14389dbd0281e901176319f5868166c706485c5e
tree0b07b705371ce9c96268f8deb59481900d804494
parentb061dc41f62048acd4a34c6570c0ea396cd9d0b4
tests: Test QOM interface casting

Add basic regression testing for QOM Interface usage.
Test checks casting to interface type/class for following cases:
  - interface implementation in leaf class
  - interface implementation in intermediate (parent) class

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
tests/Makefile
tests/check-qom-interface.c [new file with mode: 0644]