equal
deleted
inserted
replaced
121 void binaryAscii(); |
121 void binaryAscii(); |
122 |
122 |
123 void doneSignal(); |
123 void doneSignal(); |
124 void queueMoreCommandsInDoneSlot(); |
124 void queueMoreCommandsInDoneSlot(); |
125 |
125 |
|
126 void qtbug7359Crash(); |
|
127 |
126 protected slots: |
128 protected slots: |
127 void stateChanged( int ); |
129 void stateChanged( int ); |
128 void listInfo( const QUrlInfo & ); |
130 void listInfo( const QUrlInfo & ); |
129 void readyRead(); |
131 void readyRead(); |
130 void dataTransferProgress(qint64, qint64); |
132 void dataTransferProgress(qint64, qint64); |
2050 ftp->cd(".."); |
2052 ftp->cd(".."); |
2051 ftp->cd("qt"); |
2053 ftp->cd("qt"); |
2052 } |
2054 } |
2053 } |
2055 } |
2054 |
2056 |
|
2057 void tst_QFtp::qtbug7359Crash() |
|
2058 { |
|
2059 QFtp ftp; |
|
2060 ftp.connectToHost("127.0.0.1"); |
|
2061 |
|
2062 QTime t; |
|
2063 int elapsed; |
|
2064 |
|
2065 t.start(); |
|
2066 while ((elapsed = t.elapsed()) < 200) |
|
2067 QCoreApplication::processEvents(QEventLoop::AllEvents, 200 - elapsed); |
|
2068 |
|
2069 ftp.close(); |
|
2070 t.restart(); |
|
2071 while ((elapsed = t.elapsed()) < 1000) |
|
2072 QCoreApplication::processEvents(QEventLoop::AllEvents, 1000 - elapsed); |
|
2073 |
|
2074 ftp.connectToHost("127.0.0.1"); |
|
2075 |
|
2076 t.restart(); |
|
2077 while ((elapsed = t.elapsed()) < 2000) |
|
2078 QCoreApplication::processEvents(QEventLoop::AllEvents, 2000 - elapsed); |
|
2079 } |
|
2080 |
2055 QTEST_MAIN(tst_QFtp) |
2081 QTEST_MAIN(tst_QFtp) |
2056 |
2082 |
2057 #include "tst_qftp.moc" |
2083 #include "tst_qftp.moc" |