aboutsummaryrefslogtreecommitdiff
path: root/stubs/error-printf.c
diff options
context:
space:
mode:
Diffstat (limited to 'stubs/error-printf.c')
-rw-r--r--stubs/error-printf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/stubs/error-printf.c b/stubs/error-printf.c
index ac6b92aa69..99c6406668 100644
--- a/stubs/error-printf.c
+++ b/stubs/error-printf.c
@@ -4,7 +4,8 @@
void error_vprintf(const char *fmt, va_list ap)
{
- if (g_test_initialized() && !g_test_subprocess()) {
+ if (g_test_initialized() && !g_test_subprocess() &&
+ getenv("QTEST_SILENT_ERRORS")) {
char *msg = g_strdup_vprintf(fmt, ap);
g_test_message("%s", msg);
g_free(msg);