| 766 | } |
| 767 | |
| 768 | void LldbFormattersTest::testQSetString() |
| 769 | { |
| 770 | TestLaunchConfiguration cfg(QStringLiteral("debuggee_qsetstring")); |
| 771 | addCodeBreakpoint(QUrl::fromLocalFile(findSourceFile("qsetstring.cpp")), 7); |
| 772 | |
| 773 | QVERIFY(m_session->startDebugging(&cfg, m_iface)); |
| 774 | WAIT_FOR_STATE_AND_IDLE(m_session, DebugSession::PausedState); |
| 775 | |
| 776 | // Should be two rows ('auto', 'local') |
| 777 | QCOMPARE(variableCollection()->rowCount(), 2); |
| 778 | |
| 779 | variableCollection()->expanded(localVariableIndexAt(0)); |
| 780 | WAIT_FOR_A_WHILE_AND_IDLE(m_session, 50); |
| 781 | |
| 782 | if (!verifyVariable(0, QStringLiteral("s"), QStringLiteral("<size=2>"), QStringList{"\"10\"", "\"20\""}, |
| 783 | __FILE__, __LINE__, true, false, true)) { |
| 784 | return; |
| 785 | } |
| 786 | |
| 787 | m_session->stepOver(); |
| 788 | WAIT_FOR_STATE_AND_IDLE(m_session, DebugSession::PausedState); |
| 789 | QCOMPARE(m_session->currentLine(), 8); |
| 790 | |
| 791 | if (!verifyVariable(0, QStringLiteral("s"), QStringLiteral("<size=3>"), |
| 792 | {"\"10\"", "\"20\"", "\"30\""}, |
| 793 | __FILE__, __LINE__, true, false, true)) { |
| 794 | return; |
| 795 | } |
| 796 | } |
| 797 | |
| 798 | void LldbFormattersTest::testQDate() |
| 799 | { |
nothing calls this directly
no test coverage detected