mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user