diff options
| author | Paolo Bonzini | 2016-10-24 18:31:03 +0200 |
|---|---|---|
| committer | Paolo Bonzini | 2016-11-01 16:06:57 +0100 |
| commit | 28017e010ddf6849cfa830e898da3e44e6610952 (patch) | |
| tree | 3d2b4bceafd395226e7f183416ebf0eb5ae9264a /include | |
| parent | qemu-error: remove dependency of stubs on monitor (diff) | |
| download | qemu-28017e010ddf6849cfa830e898da3e44e6610952.tar.gz qemu-28017e010ddf6849cfa830e898da3e44e6610952.tar.xz qemu-28017e010ddf6849cfa830e898da3e44e6610952.zip | |
tests: send error_report to test log
Implement error_vprintf to send the output of error_report to
the test log. This silences test-vmstate.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <1477326663-67817-3-git-send-email-pbonzini@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/glib-compat.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/glib-compat.h b/include/glib-compat.h index 3f8370b3e4..acf254d2a0 100644 --- a/include/glib-compat.h +++ b/include/glib-compat.h @@ -315,4 +315,17 @@ static inline void g_source_set_name_by_id(guint tag, const char *name) } #endif +#if !GLIB_CHECK_VERSION(2, 36, 0) +/* Always fail. This will not include error_report output in the test log, + * sending it instead to stderr. + */ +#define g_test_initialized() (0) +#endif +#if !GLIB_CHECK_VERSION(2, 38, 0) +#ifdef CONFIG_HAS_GLIB_SUBPROCESS_TESTS +#error schizophrenic detection of glib subprocess testing +#endif +#define g_test_subprocess() (0) +#endif + #endif |
