qemu-e2k/util
Eric Blake a12a5a1a01 qapi: Simplify error cleanup in test-qmp-*
We have several tests that perform multiple sub-actions that are
expected to fail.  Asserting that an error occurred, then clearing
it up to prepare for the next action, turned into enough
boilerplate that it was sometimes forgotten (for example, a number
of tests added to test-qmp-input-visitor.c in d88f5fd leaked err).
Worse, if an error is not reset to NULL, we risk invalidating
later use of that error (passing a non-NULL err into a function
is generally a bad idea).  Encapsulate the boilerplate into a
single helper function error_free_or_abort(), and consistently
use it.

The new function is added into error.c for use everywhere,
although it is anticipated that testsuites will be the main
client.

Signed-off-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
2015-11-10 08:08:21 +01:00
..
acl.c
bitmap.c maint: remove / fix many doubled words 2015-09-11 10:21:38 +03:00
bitops.c
buffer.c util: pull Buffer code out of VNC module 2015-10-20 14:59:09 +01:00
compatfd.c util: Remove unused functions 2015-04-30 16:05:48 +03:00
coroutine-gthread.c coroutine: move into libqemuutil.a library 2015-10-20 14:59:04 +01:00
coroutine-sigaltstack.c coroutine: move into libqemuutil.a library 2015-10-20 14:59:04 +01:00
coroutine-ucontext.c coroutine: move into libqemuutil.a library 2015-10-20 14:59:04 +01:00
coroutine-win32.c coroutine: move into libqemuutil.a library 2015-10-20 14:59:04 +01:00
crc32c.c
cutils.c utils: rename strtosz to use qemu prefix 2015-09-25 12:04:41 +02:00
envlist.c
error.c qapi: Simplify error cleanup in test-qmp-* 2015-11-10 08:08:21 +01:00
event_notifier-posix.c util: const event_notifier_get_fd() argument 2015-10-24 18:02:49 +02:00
event_notifier-win32.c
fifo8.c
getauxval.c
hbitmap.c util/hbitmap: Add an API to reset all set bits in hbitmap 2015-06-23 15:06:16 +01:00
hexdump.c
host-utils.c
id.c util - add automated ID generation utility 2015-10-16 15:34:30 +02:00
iov.c iov: don't touch iov in iov_send_recv() 2015-06-23 16:05:34 +01:00
Makefile.objs vhost, pc, virtio features, fixes, cleanups 2015-10-22 12:41:44 +01:00
memfd.c vhost: add migration block if memfd failed 2015-10-22 14:34:49 +03:00
mmap-alloc.c mmap-alloc: fix error handling 2015-10-29 11:05:24 +02:00
module.c
notify.c
osdep.c osdep: Rename qemu_{get, set}_version() to qemu_{, set_}hw_version() 2015-11-04 15:02:31 +01:00
oslib-posix.c vhost, pc, virtio features, fixes, cleanups 2015-10-22 12:41:44 +01:00
oslib-win32.c osdep: add qemu_fork() wrapper for safely handling signals 2015-10-20 14:40:49 +01:00
path.c
qemu-config.c util/qemu-config: fix missing machine command line options 2015-10-20 16:21:00 +02:00
qemu-coroutine-io.c coroutine: move into libqemuutil.a library 2015-10-20 14:59:04 +01:00
qemu-coroutine-lock.c coroutine: move into libqemuutil.a library 2015-10-20 14:59:04 +01:00
qemu-coroutine-sleep.c coroutine: move into libqemuutil.a library 2015-10-20 14:59:04 +01:00
qemu-coroutine.c coroutine: move into libqemuutil.a library 2015-10-20 14:59:04 +01:00
qemu-error.c error: only prepend timestamp on stderr 2015-09-18 14:34:39 +02:00
qemu-openpty.c
qemu-option.c hmp: Allow for error message hints on HMP 2015-09-18 14:34:39 +02:00
qemu-progress.c
qemu-sockets.c qemu-sockets: do not test path with access() before unlinking 2015-11-06 15:42:38 +03:00
qemu-thread-posix.c * Support for jemalloc 2015-09-14 16:13:16 +01:00
qemu-thread-win32.c qemu-thread: add a fast path to the Win32 QemuEvent 2015-09-24 20:52:28 +02:00
qemu-timer-common.c
rcu.c Revert "rcu: init rcu_registry_lock after fork" 2015-09-16 17:33:32 +02:00
readline.c
rfifolock.c
throttle.c throttle: refuse bps_max/iops_max without bps/iops 2015-08-05 12:53:48 +01:00
unicode.c
uri.c