summary refs log tree commit diff stats
path: root/tests/unit/check-block-qdict.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* tests: unit: add NULL-pointer checkPaolo Bonzini2022-09-181-1/+1
| | | | | | | | | | | | In CID 1432593, Coverity complains that the result of qdict_crumple() might leak if it is not a dictionary. This is not a practical concern since the test would fail immediately with a NULL pointer dereference in qdict_size(). However, it is not nice to depend on qdict_size() crashing, so add an explicit assertion that that the crumpled object was indeed a dictionary. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* tests: Move unit tests into a separate directoryThomas Huth2021-03-121-0/+712
The main tests directory still looks very crowded, and it's not clear which files are part of a unit tests and which belong to a different test subsystem. Let's clean up the mess and move the unit tests to a separate directory. Message-Id: <20210310063314.1049838-1-thuth@redhat.com> Acked-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>