Changeset 970 for tests/process/process-sync/process-sync.cpp
- Timestamp:
- Aug 11, 2011, 11:00:15 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/process/process-sync/process-sync.cpp
r925 r970 8 8 #include <QFile> 9 9 #include <QProcess> 10 10 11 11 12 int test_write(const QString &aFile) … … 31 32 { 32 33 //QByteArray ba = f.read (2048); 33 QByteArray ba = f.read (32768); 34 //QByteArray ba = f.read (32768); 35 QByteArray ba = f.read (65536); 34 36 35 37 p.write (ba); … … 80 82 if (p.waitForStarted()) 81 83 { 82 while (p.waitForReadyRead() )84 while (p.waitForReadyRead()) 83 85 { 84 86 QByteArray ba = p.read (p.bytesAvailable()); … … 210 212 int main( int argc, char *argv[] ) 211 213 { 212 if (argc == 3) 213 { 214 if (argc >= 3) 215 { 216 QScopedPointer <QApplication> app; 217 if (argc == 4 && qstrcmp (argv [3], "gui") == 0) 218 app.reset (new QApplication (argc, argv)); 219 214 220 if (qstrcmp (argv [1], "read_out") == 0) 215 221 return test_read (QLatin1String (argv [2]), false);
Note:
See TracChangeset
for help on using the changeset viewer.