diff options
author | Rohan McGovern <rohan.mcgovern@nokia.com> | 2010-06-17 23:19:04 (GMT) |
---|---|---|
committer | Rohan McGovern <rohan.mcgovern@nokia.com> | 2010-06-17 23:19:04 (GMT) |
commit | b7468f5df0d3f98d56282283127c4b1a28749f7b (patch) | |
tree | 854d37be1b87adac59f2a726f0ceaeb3fdf17902 /tests/auto/qnetworkdiskcache/tst_qnetworkdiskcache.cpp | |
parent | 21af6bbee63bdac4907013d0abb0908086d85217 (diff) | |
download | Qt-b7468f5df0d3f98d56282283127c4b1a28749f7b.zip Qt-b7468f5df0d3f98d56282283127c4b1a28749f7b.tar.gz Qt-b7468f5df0d3f98d56282283127c4b1a28749f7b.tar.bz2 |
Fixed tst_QNetworkDiskCache creating badly named directories.
This code was intending to create a uniquely named directory containing
the PID of the test, but it was accidentally creating a directory
with a name possibly containing unprintable characters.
Diffstat (limited to 'tests/auto/qnetworkdiskcache/tst_qnetworkdiskcache.cpp')
-rw-r--r-- | tests/auto/qnetworkdiskcache/tst_qnetworkdiskcache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qnetworkdiskcache/tst_qnetworkdiskcache.cpp b/tests/auto/qnetworkdiskcache/tst_qnetworkdiskcache.cpp index 5bbe8f6..245a5c6 100644 --- a/tests/auto/qnetworkdiskcache/tst_qnetworkdiskcache.cpp +++ b/tests/auto/qnetworkdiskcache/tst_qnetworkdiskcache.cpp @@ -642,7 +642,7 @@ void tst_QNetworkDiskCache::crashWhenParentingCache() QNetworkAccessManager *manager = new QNetworkAccessManager(); QNetworkDiskCache *diskCache = new QNetworkDiskCache(manager); // parent to qnam! // we expect the temp dir to be cleaned at some point anyway - diskCache->setCacheDirectory(QDir::tempPath() + "/cacheDir_" + QCoreApplication::applicationPid()); + diskCache->setCacheDirectory(QString("%1/cacheDir_%2").arg(QDir::tempPath()).arg(QCoreApplication::applicationPid())); manager->setCache(diskCache); QUrl url("http://127.0.0.1:" + QString::number(server.serverPort())); |