diff options
author | Marius Storm-Olsen <marius.storm-olsen@nokia.com> | 2009-08-06 12:45:51 (GMT) |
---|---|---|
committer | Marius Storm-Olsen <marius.storm-olsen@nokia.com> | 2009-08-06 12:50:08 (GMT) |
commit | ea181f7fa681815f27b633ba0b3b0c2754c1a753 (patch) | |
tree | 8ed981aaf40255d7bf64fc9be8b9b3431de1fe12 /tests/auto/qdbuscontext | |
parent | 0d57c5111236c06ace5b2759ddb4c63749a057da (diff) | |
download | Qt-ea181f7fa681815f27b633ba0b3b0c2754c1a753.zip Qt-ea181f7fa681815f27b633ba0b3b0c2754c1a753.tar.gz Qt-ea181f7fa681815f27b633ba0b3b0c2754c1a753.tar.bz2 |
Use QFile instead of QTemporaryFile in compilerwarning testcase
QTemporaryFile on Windows doesn't open the file as a sharable, and
doens't close the file when you call .close(). So the testcase
fails on Windows with a Sharing Violation when the compiler tries
to compile the file.
By switching to QFile we can at least close the file before letting
the compiler chew on it, and remove it at the end when the testcase
is done. Open the file with Truncate, in case the testcase fails to
remove the file.
Reviewed-by: trustme
Diffstat (limited to 'tests/auto/qdbuscontext')
0 files changed, 0 insertions, 0 deletions