Changeset 846 for trunk/src/testlib/qtestfilelogger.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/testlib/qtestfilelogger.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 45 45 #include "QtTest/private/qtestresult_p.h" 46 46 47 #include <QtCore/qdir.h> 48 47 49 #include <stdlib.h> 48 50 #include <stdio.h> … … 70 72 { 71 73 char filename[100]; 74 int index = 0; 75 #if defined(Q_OS_SYMBIAN) 76 QByteArray ba(QDir::toNativeSeparators(QString(QDir::homePath()+QDir::separator())).toUtf8()); 77 index = ba.length(); 78 QTest::qt_snprintf(filename, sizeof(filename), "%s%s.log", 79 ba.constData(), QTestResult::currentTestObjectName()); 80 #else 72 81 QTest::qt_snprintf(filename, sizeof(filename), "%s.log", 73 82 QTestResult::currentTestObjectName()); 74 75 // Keep filenames simple 76 for (uint i = 0; i < sizeof(filename) && filename[i]; ++i) { 83 #endif 84 85 // Keep filenames simple 86 for (uint i = index; i < sizeof(filename) && filename[i]; ++i) { 77 87 char& c = filename[i]; 78 88 if (!((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')
Note:
See TracChangeset
for help on using the changeset viewer.