summaryrefslogtreecommitdiffstats
path: root/src/testlib/qtest_global.h
diff options
context:
space:
mode:
authorRohan McGovern <rohan.mcgovern@nokia.com>2009-07-29 07:26:37 (GMT)
committerRohan McGovern <rohan.mcgovern@nokia.com>2009-07-30 04:54:44 (GMT)
commita92117be4323e26efe3f13b5c624e5010a7cd26a (patch)
tree23aa971a07a98543324fa69761a1b4183a537991 /src/testlib/qtest_global.h
parent5246aeb198ccfd2a3fc94298161c24cb8f57f81f (diff)
downloadQt-a92117be4323e26efe3f13b5c624e5010a7cd26a.zip
Qt-a92117be4323e26efe3f13b5c624e5010a7cd26a.tar.gz
Qt-a92117be4323e26efe3f13b5c624e5010a7cd26a.tar.bz2
Allow testlib loggers to dynamically allocate storage for strings.
This enables very long failure messages (e.g. including an entire build log in a failure message). This change modifies only the plain test logger to use this feature. Task: 253861 Reviewed-by: Michael Goddard
Diffstat (limited to 'src/testlib/qtest_global.h')
-rw-r--r--src/testlib/qtest_global.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/testlib/qtest_global.h b/src/testlib/qtest_global.h
index b5b0fc0..c40f0ad 100644
--- a/src/testlib/qtest_global.h
+++ b/src/testlib/qtest_global.h
@@ -82,6 +82,7 @@ namespace QTest
enum TestFailMode { Abort = 1, Continue = 2 };
int Q_TESTLIB_EXPORT qt_snprintf(char *str, int size, const char *format, ...);
+ int qt_asprintf(char **str, const char *format, ...);
}
QT_END_NAMESPACE