diff --git a/src/testlib/qplaintestlogger.cpp b/src/testlib/qplaintestlogger.cpp index a923a0d0fa..57ce5b031d 100644 --- a/src/testlib/qplaintestlogger.cpp +++ b/src/testlib/qplaintestlogger.cpp @@ -62,6 +62,10 @@ #include #include +#ifdef Q_OS_ANDROID +# include +#endif + QT_BEGIN_NAMESPACE namespace QTest { @@ -206,6 +210,8 @@ void QPlainTestLogger::outputMessage(const char *str) if (stream != stdout) #elif defined(Q_OS_WIN) OutputDebugStringA(str); +#elif defined(Q_OS_ANDROID) + __android_log_print(ANDROID_LOG_INFO, "QTestLib", str); #endif outputString(str); }