equal
deleted
inserted
replaced
139 const QPatternist::AutoPtr<Worker> worker(new Worker(eventLoop, m_existingBaseline, result)); |
139 const QPatternist::AutoPtr<Worker> worker(new Worker(eventLoop, m_existingBaseline, result)); |
140 |
140 |
141 /* Passed to ResultThreader so it knows what kind of file it is handling. */ |
141 /* Passed to ResultThreader so it knows what kind of file it is handling. */ |
142 ResultThreader::Type type = ResultThreader::Baseline; |
142 ResultThreader::Type type = ResultThreader::Baseline; |
143 |
143 |
144 QProcess::execute(QLatin1String("p4 edit ") + m_existingBaseline); |
|
145 |
|
146 for(QFileInfoList::const_iterator it(list.constBegin()); it != end; ++it) |
144 for(QFileInfoList::const_iterator it(list.constBegin()); it != end; ++it) |
147 { |
145 { |
148 QFileInfo i(*it); |
146 QFileInfo i(*it); |
149 i.makeAbsolute(); |
147 i.makeAbsolute(); |
150 |
148 |
165 type = ResultThreader::Result; |
163 type = ResultThreader::Result; |
166 } |
164 } |
167 |
165 |
168 const int exitCode = eventLoop.exec(); |
166 const int exitCode = eventLoop.exec(); |
169 |
167 |
170 QProcess::execute(QLatin1String("p4 revert -a ") + m_existingBaseline); |
|
171 |
|
172 QCOMPARE(exitCode, 0); |
168 QCOMPARE(exitCode, 0); |
173 } |
169 } |
174 |
170 |
175 bool tst_SuiteTest::dontRun() const |
171 bool tst_SuiteTest::dontRun() const |
176 { |
172 { |