Clarify assert on use of const char* as TestData type in tests.
authorMitch Curtis <mitch.curtis@digia.com>
Fri, 28 Sep 2012 14:23:09 +0000 (16:23 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 23 Oct 2012 23:38:51 +0000 (01:38 +0200)
commit7cbdac13627b8e6ba9ed1bcd42fdf3f408f02b7d
treec6e38cc02bf665e97edc9a54d692618f6611329c
parent811bf4da67cedea0daa40f2fff805003687e9d6e
Clarify assert on use of const char* as TestData type in tests.

Currently all C-style strings used as data types in QTest::addColumn
will assert at runtime with, e.g.: "expected data of type
'const char*', got 'QString' for element 0 of data with tab 'blah'".
This patch makes it clear that C-style strings are disallowed.

Change-Id: Iadbb8f10e16607de95c7adb43d9ff3310aac6738
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
src/testlib/qtestcase.h