Fixed tst_QFile when redirecting stdin/stdout/stderr to/from files.
authorRohan McGovern <rohan.mcgovern@nokia.com>
Wed, 15 Feb 2012 07:56:30 +0000 (17:56 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 16 Feb 2012 00:57:27 +0000 (01:57 +0100)
commit7a5bb18dc68326537ff0dc81932e715f1d129a83
tree6e75d6e8041c450ff1efdf7200cfb40a4ad92ba8
parente0d26ebe2e09c3d5756859972f9a71873786318a
Fixed tst_QFile when redirecting stdin/stdout/stderr to/from files.

openStandardStreamsBufferedStreams would fail if standard streams were
redirected to a file (e.g. ./tst_qfile > testlog.txt).

openStandardStreamsFileDescriptors already has a workaround, so apply it
here too.

Change-Id: Iffe9d7864909e489e77c1114e80c4e3bc70a8722
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
tests/auto/corelib/io/qfile/tst_qfile.cpp