From: João Abecasis Date: Thu, 8 Dec 2011 14:30:59 +0000 (+0100) Subject: Promote openStandardStreams sub-tests to top level X-Git-Tag: qt-v5.0.0-alpha1~2341 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=12dffdae75996d154ba004d9515d4bf3ff4112c8;p=profile%2Fivi%2Fqtbase.git Promote openStandardStreams sub-tests to top level Commit a72468e820c2922540737c053eef27d033c2e77b split the test into two functions, but kept them combined in a single slot for QTest to invoke. That being the case, we might as well have them as test functions of their own right. Should work nicer with test failures, skips and such. Change-Id: I62c1fc7777c08b3e87a5903632d73dc1e1d97e1a Reviewed-by: Bradley T. Hughes Reviewed-by: Friedemann Kleint --- diff --git a/tests/auto/corelib/io/qfile/tst_qfile.cpp b/tests/auto/corelib/io/qfile/tst_qfile.cpp index 0f9293f..300f30e 100644 --- a/tests/auto/corelib/io/qfile/tst_qfile.cpp +++ b/tests/auto/corelib/io/qfile/tst_qfile.cpp @@ -199,7 +199,8 @@ private slots: void mapOpenMode_data(); void mapOpenMode(); - void openStandardStreams(); + void openStandardStreamsFileDescriptors(); + void openStandardStreamsBufferedStreams(); void resize_data(); void resize(); @@ -228,9 +229,6 @@ private: NumberOfFileTypes }; - void openStandardStreamsFileDescriptors(); - void openStandardStreamsBufferedStreams(); - bool openFd(QFile &file, QIODevice::OpenMode mode, QFile::FileHandleFlags handleFlags) { int fdMode = QT_OPEN_LARGEFILE | QT_OPEN_BINARY; @@ -3034,12 +3032,6 @@ void tst_QFile::openStandardStreamsBufferedStreams() } } -void tst_QFile::openStandardStreams() -{ - openStandardStreamsFileDescriptors(); - openStandardStreamsBufferedStreams(); -} - void tst_QFile::writeNothing() { for (int i = 0; i < NumberOfFileTypes; ++i) {