Skip to content

Commit e845f01

Browse files
annejanclaude
andauthored
chore: clang-format two over-long QVERIFY2 lines in tst_integration.cpp (#1475)
CodeRabbit's auto-fix on #1471 captured the QFile::write() return value and asserted it equals the payload size — sensible nit. The resulting QVERIFY2 calls busted the 80-col limit and the super-linter is rejecting unrelated PRs (#1474 head was 7430a35) because clang-format runs over the whole tree. Reformat both calls — break after the condition, matches the style of all the other QVERIFY2 sites added in earlier security PRs. No semantic change. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent f76afff commit e845f01

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/auto/integration/tst_integration.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,13 +427,15 @@ void tst_integration::imitatePass_grepSkipsUndecryptableFiles() {
427427
QVERIFY2(c1.open(QIODevice::WriteOnly), "should create garbage-token.gpg");
428428
const char *payload1 = "not a real gpg payload but contains the token word\n";
429429
qint64 bytesWritten1 = c1.write(payload1);
430-
QVERIFY2(bytesWritten1 == static_cast<qint64>(strlen(payload1)), "failed to write test payload to c1");
430+
QVERIFY2(bytesWritten1 == static_cast<qint64>(strlen(payload1)),
431+
"failed to write test payload to c1");
431432
c1.close();
432433
QFile c2(corrupt2);
433434
QVERIFY2(c2.open(QIODevice::WriteOnly), "should create corrupt.gpg");
434435
QByteArray corruptData("\xFF\xFE\x00\x01 binary junk\n", 17);
435436
qint64 bytesWritten2 = c2.write(corruptData);
436-
QVERIFY2(bytesWritten2 == corruptData.size(), "failed to write test payload to c2");
437+
QVERIFY2(bytesWritten2 == corruptData.size(),
438+
"failed to write test payload to c2");
437439
c2.close();
438440

439441
QSignalSpy grepSpy(&pass, &Pass::finishedGrep);

0 commit comments

Comments
 (0)