| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When we fail to get file attributes, the file times are left in an
uninitialized state, which may lead to a crash. In particular, this was
showing up in QMessageBox's autotest, where the lastModified time is
being queried on a non-existing file.
Before the refactoring, we were returning a default constructed
QDateTime to queries about different file times, with this change we
will return the time corresponding to a default constructed FILETIME
object.
Reviewed-by: Shane Kearns
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
For Mac OS X 10.5 and earlier, QDir::canonicalPath depends on
QDir::cleanPath which is fundamentally broken and specifically fails for
the case of "/./", returning "" instead of "/".
Fixing cleanPath to a sane and correct behaviour seems to break more
code than it is worth so we're skipping these individual tests for the
time being.
|
|
|
|
|
|
| |
And check if this gives us more reliable results.
Reviewed-by: Prasanth Ullattil
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
scm.dev.nokia.troll.no:qt/qt-file-engines-refactor into master-integration
* 'earth/file-engine-refactor' of scm.dev.nokia.troll.no:qt/qt-file-engines-refactor: (218 commits)
Fix compile error in tst_qfileinfo on Mac/Linux
Fix tst_QFileInfo owner() & group() failure on Windows.
Fix tst_QFileInfo::canonicalFilePath failure on Windows
Fix QDir::relativeFilePath
Fix spelling in comments
Add missing license header to test case
Define _WIN32_WINNT before any includes
New attempt at fixing compilation failure
Removing unused duplicate definitions
No symbolic links in Windows CE
Set minimum target Windows version to 2000
More missing includes
Add missing include
Fix compile error
Update def files
Fix tst_QFile::caseSensitivity test on Mac
Fix typo in QFile test
Add test generated files to .gitignore
Fix compile error for qdir autotest on symbian3
QtDeclarative: make autotests compile on symbian
...
|
| |
| |
| |
| | |
Reviewed-by: Shane Kearns
|
| |
| |
| |
| |
| |
| |
| |
| | |
The ownership of newly created files are transferred to the Administrator
group only if the application is running with Admin privilages. This will
happen only on Windows 7 & Vista, on XP user has the ownership.
Reviewed-by: Joao
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When the test application is running without administrative privilages,
the CreateSymbolicLink() can incorrectly return success. To handle this
we need to check whether GetLastError() returns ERROR_PRIVILEGE_NOT_HELD
or not.
Reviewed-by: Joao
|
| | |
|
| | |
|
| |\
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
master's version of conflicting def files picked.
Conflicts:
src/s60installs/bwins/QtCoreu.def
src/s60installs/bwins/QtGuiu.def
src/s60installs/bwins/QtNetworku.def
src/s60installs/eabi/QtCoreu.def
src/s60installs/eabi/QtGuiu.def
|
| | |
| | |
| | |
| | |
| | | |
Mac's default file system is case-preserving, but case-insensitive,
otherwise.
|
| | |
| | |
| | |
| | |
| | | |
If file system isn't case sensitive, open succeeds as should reading,
with the read data matching testData.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The tests/.gitignore, did not inherit from the main one, which causes
git to show hundreds of new files when running tests on symbian.
Reviewed-by: Markus Goetz
|
| | |
| | |
| | |
| | |
| | |
| | | |
Header file is in a different location compared to previous SDK versions
Reviewed-by: Miikka Heikkinen
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Move tests for private classes inside private_tests scope
Add missing libraries
Add QT_NO_CONCURRENT ifdef around a test case
Define Q_DECLARATIVE_PRIVATE_EXPORT as Q_AUTOTEST_EXPORT,
so the classes are exported for autotests, previously
they were exported on every OS except symbian.
(this doesn't affect exports for production builds)
Reviewed-by: Miikka Heikkinen
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
On symbian, check that opening files in protected locations either
succeeds or fails cleanly as expected by the capabilities the test is
compiled with.
This acts as a regression test for opening files in /resource, and also
checks the other locations behave as expected.
On all platforms, check file created with a mixed case filename
can be accessed by it's aliases that differ only in case (or not)
depending on the OS case sensitivity.
For Windows/Symbian, file should be accessible by altered case aliases
For other OS, it should not (other OS supported by Qt are unix like)
Reviewed-by: mread
|
| | |
| | |
| | |
| | |
| | |
| | | |
This was missed from the previous commit.
Reviewed-by: Joao
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
These tests have no GUI nor do they depend on network, so let's see what
breaks if they're parallelized :-)
Reviewed-by: Olivier Goffart
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Absolute path for the link target can contain "../" elements and so
needs to be cleaned. Really depends on the definition for SRCDIR.
Reviewed-by: Prasanth Ullattil
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Test expects to see a directory in SRCDIR. Copying the resources
directory from QAbstractFileEngine autotest shouldn't impact the git
repository and serves our purposes well :-)
Reviewed-by: Olivier Goffart
|
| | |
| | |
| | |
| | | |
Oops, I let a space character slip...
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This tests the default file support provided by Qt, together with
QFSFileEngine, QResource engine and a reference custom file engine that
works on top of a simple virtual in-memory file system.
For now, the test is only focusing on QFile I/O functionality, it should
be extended to cover QFileInfo, QDir, QDirIterator and file system
operations in QFile.
The intent for the reference file engine is not to be a fully functional
file system, but to ensure that minimal support for custom file engines
is working.
Reviewed-by: Shane Kearns
|
| |\ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Conflicts:
demos/declarative/minehunt/minehunt.pro
src/corelib/io/io.pri
src/corelib/io/qfsfileengine.cpp
src/corelib/io/qfsfileengine_unix.cpp
src/corelib/io/qfsfileengine_win.cpp
src/s60installs/bwins/QtCoreu.def
src/s60installs/bwins/QtDeclarativeu.def
src/s60installs/bwins/QtGuiu.def
src/s60installs/eabi/QtCoreu.def
src/s60installs/eabi/QtDeclarativeu.def
src/s60installs/eabi/QtGuiu.def
tests/auto/qapplication/test/test.pro
tests/auto/qaudioinput/qaudioinput.pro
tests/auto/qaudiooutput/qaudiooutput.pro
tests/auto/qchar/qchar.pro
tests/auto/qdiriterator/qdiriterator.pro
tests/auto/qsound/qsound.pro
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Skip test requiring symbolic link as they aren't supported
Move a Q_EXPECT_FAIL to immediately before the test function that
fails (so the test result is XFAIL instead of FAIL)
Reviewed-by: joao
|
| | | |
| | | |
| | | |
| | | | |
Reviewed-by: Trust Me
|
| | | |
| | | |
| | | |
| | | | |
Reviewed-By: Trust Me
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Functional coverage of QDir, except for trivial shims for deprecated APIs
and the QDebug streaming functions.
Reviewed-by: joao
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Adding tests for these functions:
symLinkTarget / readLink (static & non static)
permissions (static)
constructors which take a QObject parent
After this, all function of QFile API are tested except encoding/decoding
functions and some QT3_SUPPORT inlines in the header.
Reviewed-by: joao
|
| | | |
| | | |
| | | |
| | | | |
Reviewed-By: joao
|
| | | |
| | | |
| | | |
| | | | |
Reviewed-By: joao
|
| | | |
| | | |
| | | |
| | | | |
Reviewed-By: joao
|
| | | |
| | | |
| | | |
| | | | |
Reviewed-By: joao
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The existing dir test function is appropriate, now it checks the dir
functions as well as the path functions.
Reviewed-By: Prasanth Ullattil
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Creating symbolic links requires admin privilege by default - when UAC
is enabled then even users in the administrators group do not have admin
privileges without an escalation prompt. (which is inappropriate for an
autotest).
When run with insufficient privileges, the test is skipped with a warning
Reviewed-By: Prasanth Ullattil
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Memory mapping of RFile handles is not supported in current symbian OS
versions. However the "open C" libraries provide an emulated mmap()
implementation which was used by QFile::map in Qt 4.6 release.
To avoid breaking applications which rely on this function, QFile::map
will now open the file with open C as well in order to use that handle
to call mmap().
When symbian implements a file mapping API, we can switch the implementation
to use that for RFile handles.
Reviewed-By: joao
|
| | | |
| | | |
| | | |
| | | | |
Reviewed-by: Joao
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The filesSelectedSignal() test case was using the Qt source tree as its
test directory - however this is not deployed to the device for symbian
and windows CE.
On symbian, the path evaluates to the root directory, which doesn't meet
the conditions of the test (it contains only directories, while the test
requires both files and directories to be present)
Changed the test to use SRCDIR (on desktops, the source directory of the
test code; on symbian/wince the deployed files location)
This directory is valid for the test as it contains both files and directories.
The hooks() test case crashes on symbian versions prior to symbian^3,
because data exports from dlls are not properly supported by the symbian kernel
So, this test is skipped for old symbian versions (if a test crashes, then
no xml result file is created)
Reviewed-By: Markus Goetz
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The same workaround used for other autotests, as the symbian build system
doesn't accept \" in DEFINES.
Reviewed-By: Janne Koskinen
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The qprocess autotest launches various sub processes and checks their results,
but this lacked error handling.
Added a QVERIFY when opening files (if fopen returned NULL, the test fails
instead of crashing)
Added a 10s guard when waiting for a subprocess to create a file - previously
this loop did not terminate if the subprocess failed.
Reviewed-By: Markus Goetz
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
File engine refactor caused a regression in the TIFF image codec,
as QFile::seek() previously worked like lseek() / fseek() in posix.
But on symbian the native RFile::Seek api clamps to the end of the file
if you attempt to seek beyond there.
This test checks seek behaviour in the appropriate place, the QFile
auto test.
Reviewed-By: joao
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
File engine refactor caused a regression in QTextDocument, due to a
QFileInfo constructed with an empty string returning true from exists()
Added a test case to QFileInfo to catch this at the correct level.
Reviewed-By: joao
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Files in /sys/bin/ on any drive can be assumed to be executable.
So the executable flag is set in the metadata for this path, even though
RFs::Entry fails due to permissions (so we don't know if the file exists or not)
Reviewed-By: joao
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
First, pgm and pbm formats need the same exception given to ppm format
as they are subtypes of the same format. (as text based image formats they
are vulnerable to line end differences)
Second, a workaround for the readFromDevice test case hanging on the symbian
emulator. The test expects to be able to send a whole image to a socket and
have this fit within the send/receive buffers of the TCP stack.
At least for the emulator's winsock backend, this hangs the autotest inside
a blocking write. On the Nokia 5800, the test passed so it's currently skipped
only for the emulator.
Reviewed-By: Jason Barron
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Due to the change from default deployment in symbian from being hardcoded
in qmake to being in default_deployment.prf the .pro files needed to be
changed.
Specifically, "DEPLOYMENT = foo" needs to be "DEPLOYMENT += foo" otherwise
the default deployment lines are not added and the test won't install.
Reviewed-By: Miikka Heikkinen
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Also fix the qfileenginemodel test to be less fragile
Reviewed-by: Prasanth Ullattil
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
These tests did not link when QT_BUILD_INTERNAL was not defined, as one
of the private headers was causing QFileInfoGatherer::~QFileInfoGatherer to
be referenced
Reviewed-By: Thomas Zander
|