mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
use consistent way to detect if colored message should be logged in messageType2String()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
d555626f1d
commit
d6dc3efd9e
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ namespace QTest {
|
|||
|
||||
static const char *messageType2String(QAbstractTestLogger::MessageTypes type)
|
||||
{
|
||||
static bool colored = ::getenv("QTEST_COLORED");
|
||||
static bool colored = (!qgetenv("QTEST_COLORED").isEmpty());
|
||||
switch (type) {
|
||||
case QAbstractTestLogger::Skip:
|
||||
return COLORED_MSG(0, 37, "SKIP "); //white
|
||||
|
|
Loading…
Add table
Reference in a new issue