Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 7add59d4 authored by Milian Wolff's avatar Milian Wolff Committed by Kevin Funk

Also unbreak QtPrintersTest::testQByteArray

Reviewers: #kdevelop

Subscribers: kdevelop-devel

Differential Revision: https://phabricator.kde.org/D9924

(cherry picked from commit a6093e7e)
parent e6ee67c2
......@@ -113,11 +113,14 @@ void QtPrintersTest::testQByteArray()
gdb.execute("break qbytearray.cpp:5");
gdb.execute("run");
QByteArray out = gdb.execute("print ba");
QVERIFY(out.contains("\"test byte array\""));
QVERIFY(out.contains("[0] = 116 't'"));
QVERIFY(out.contains("[4] = 32 ' '"));
qDebug() << out;
QVERIFY(out.contains("\"\xE6\x98\xAF'\\\"\\\\u6211\""));
QVERIFY(out.contains("[0] = -26 '\\346'"));
QVERIFY(out.contains("[3] = 39 '\\''"));
QVERIFY(out.contains("[4] = 34 '\"'"));
gdb.execute("next");
QVERIFY(gdb.execute("print ba").contains("\"test byte arrayx\""));
out = gdb.execute("print ba");
QVERIFY(out.contains("\"\xE6\x98\xAF'\\\"\\\\u6211x\""));
}
void QtPrintersTest::testQListContainer_data()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment