summaryrefslogtreecommitdiffstats
path: root/src/testlib/qabstracttestlogger_p.h
diff options
context:
space:
mode:
authorJoão Abecasis <joao@trolltech.com>2010-02-09 12:57:12 (GMT)
committerJoão Abecasis <joao@trolltech.com>2010-02-12 16:15:56 (GMT)
commit9924079427935f781083299d7ca030dafb4f2598 (patch)
tree9214dff39c3a244a741b09b39f54a2065dc04b1a /src/testlib/qabstracttestlogger_p.h
parentf25099f400e7379f0a6e00500e990948b9785e63 (diff)
downloadQt-9924079427935f781083299d7ca030dafb4f2598.zip
Qt-9924079427935f781083299d7ca030dafb4f2598.tar.gz
Qt-9924079427935f781083299d7ca030dafb4f2598.tar.bz2
QTestLib: don't crash if data tag requested, none available
When specific test functions and data tags are requested from the command line, a non-existing data tag will produce error output *iif* data tags are available for the function. However, if no data tags are available, element 0 in testData would be dereferenced, resulting in a crash. Special case the empty data tag, even if no tags are available, because some loggers (e.g., the QXmlTestLogger) will output results with no tag the same way as those with an empty data tag. Reviewed-by: Morten Sørvig
Diffstat (limited to 'src/testlib/qabstracttestlogger_p.h')
0 files changed, 0 insertions, 0 deletions